mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Eliminate dummy implementation of bufferRowRangeForScreenRow
This commit is contained in:
@@ -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 ->
|
||||
|
||||
@@ -20,7 +20,6 @@ class RowMap
|
||||
return [screenRow, screenRow + 1]
|
||||
|
||||
bufferRowRangeForScreenRow: (screenRow) ->
|
||||
[screenRow, screenRow]
|
||||
|
||||
mapBufferRowRange: (startBufferRow, endBufferRow, screenRows) ->
|
||||
bufferRow = 0
|
||||
|
||||
Reference in New Issue
Block a user