From 11a1a9e75b3320e47fab8a268489fc1840a2ce1f Mon Sep 17 00:00:00 2001 From: Sebastian Dietrich Date: Sun, 10 Dec 2017 21:39:10 +0100 Subject: [PATCH] Remove functions not longer needed --- code_comments/htdocs/code-comments.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/code_comments/htdocs/code-comments.js b/code_comments/htdocs/code-comments.js index c0ae3d2..f9b0c0f 100644 --- a/code_comments/htdocs/code-comments.js +++ b/code_comments/htdocs/code-comments.js @@ -271,12 +271,6 @@ var underscore = _.noConflict(); // wrap TH content in spans so we can hide/show them this.wrapTHsInSpans(); }, - getLineNumberInDiffByTr: function( tr ) { - return $.inArray( tr, this.$rows ) + 1; - }, - getTrByLineNumberInDiff: function( line ) { - return this.$rows[line - 1]; - }, getTrByFileAndLineNumberInFile: function ( file, line) { var col; var container; @@ -334,9 +328,6 @@ var underscore = _.noConflict(); getFile: function() { return this.$el.parents( 'li' ).find( 'h2>a:first' ).text(); }, - getLineNumberInDiff: function() { - return Rows.getLineNumberInDiffByTr( this.el ); - }, getLineNumberInFile: function() { // Get the linenumber within the file of this row. If the row is deleted, return it negated. var l = this.$lineNumberCell.text().trim();