From 8be9375508cfdd7614d6b575894ebee350b941b7 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 22 Sep 2017 14:38:54 -0700 Subject: [PATCH] Remove unnecessary TokenizedBuffer methods --- src/tokenized-buffer.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/tokenized-buffer.js b/src/tokenized-buffer.js index fd5691740..f7e96e88c 100644 --- a/src/tokenized-buffer.js +++ b/src/tokenized-buffer.js @@ -178,7 +178,7 @@ class TokenizedBuffer { while (this.firstInvalidRow() != null && rowsRemaining > 0) { var endRow, filledRegion const startRow = this.invalidRows.shift() - const lastRow = this.getLastRow() + const lastRow = this.buffer.getLastRow() if (startRow > lastRow) continue let row = startRow @@ -398,7 +398,7 @@ class TokenizedBuffer { if (line === '') { let nextRow = bufferRow + 1 - const lineCount = this.getLineCount() + const lineCount = this.buffer.getLineCount() while (nextRow < lineCount) { const nextLine = this.buffer.lineForRow(nextRow) if (nextLine !== '') { @@ -642,17 +642,6 @@ class TokenizedBuffer { } } - // Gets the row number of the last line. - // - // Returns a {Number}. - getLastRow () { - return this.buffer.getLastRow() - } - - getLineCount () { - return this.buffer.getLineCount() - } - logLines (start = 0, end = this.buffer.getLastRow()) { for (let row = start; row <= end; row++) { const line = this.tokenizedLines[row].text