mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove unused subtract method in point (it did not behave correctly)
This commit is contained in:
@@ -26,16 +26,6 @@ class Point
|
||||
|
||||
new Point(row, column)
|
||||
|
||||
subtract: (other) ->
|
||||
other = Point.fromObject(other)
|
||||
row = @row - other.row
|
||||
if @row == other.row
|
||||
column = @column - other.column
|
||||
else
|
||||
column = @column
|
||||
|
||||
new Point(row, column)
|
||||
|
||||
splitAt: (column) ->
|
||||
if @row == 0
|
||||
rightColumn = @column - column
|
||||
|
||||
Reference in New Issue
Block a user