mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Eliminate dummy implementation of bufferRowRangeForScreenRow
This commit is contained in:
parent
9a12b170f6
commit
32b40fe1ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user