Eliminate dummy implementation of bufferRowRangeForScreenRow

This commit is contained in:
Nathan Sobo 2013-05-07 10:07:29 -06:00
parent 9a12b170f6
commit 32b40fe1ad
2 changed files with 1 additions and 4 deletions

View File

@ -7,11 +7,9 @@ describe "RowMap", ->
map = new RowMap
describe "when no mappings have been recorded", ->
it "maps screen rows to buffer rows 1:1", ->
it "maps buffer rows to screen rows 1:1", ->
expect(map.screenRowRangeForBufferRow(0)).toEqual [0, 1]
expect(map.bufferRowRangeForScreenRow(0)).toEqual [0, 1]
expect(map.screenRowRangeForBufferRow(100)).toEqual [100, 101]
expect(map.bufferRowRangeForScreenRow(100)).toEqual [100, 101]
describe "when a buffer row range is mapped to a single screen row (like a visible fold)", ->
beforeEach ->

View File

@ -20,7 +20,6 @@ class RowMap
return [screenRow, screenRow + 1]
bufferRowRangeForScreenRow: (screenRow) ->
[screenRow, screenRow]
mapBufferRowRange: (startBufferRow, endBufferRow, screenRows) ->
bufferRow = 0