Remove unnecessary TokenizedBuffer methods

This commit is contained in:
Max Brunsfeld
2017-09-22 14:38:54 -07:00
parent 0884546d3c
commit 8be9375508

View File

@@ -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