summaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r--web_src/js/index.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 1d36dcf6b2..1f4c9a509a 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1134,17 +1134,6 @@ async function initRepository() {
initReactionSelector();
}
- // Diff
- if ($('.repository.diff').length > 0) {
- $('.diff-counter').each(function () {
- const $item = $(this);
- const addLine = $item.find('span[data-line].add').data('line');
- const delLine = $item.find('span[data-line].del').data('line');
- const addPercent = parseFloat(addLine) / (parseFloat(addLine) + parseFloat(delLine)) * 100;
- $item.find('.bar .add').css('width', `${addPercent}%`);
- });
- }
-
// Quick start and repository home
$('#repo-clone-ssh').on('click', function () {
$('.clone-url').text($(this).data('link'));