From 17b3531fcbd6949e856e33bc02d18f689e8f9799 Mon Sep 17 00:00:00 2001 From: Kwang Yul Seo Date: Tue, 17 Nov 2015 19:51:27 +0900 Subject: [PATCH] Replace the body of ::toDelta method with @getExent(). ::getExtent and ::toDelta do the exactly same thing. --- src/range.coffee | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/range.coffee b/src/range.coffee index 5e975f4357..263535cc6f 100644 --- a/src/range.coffee +++ b/src/range.coffee @@ -298,13 +298,7 @@ class Range Section: Conversion ### - toDelta: -> - rows = @end.row - @start.row - if rows == 0 - columns = @end.column - @start.column - else - columns = @end.column - new Point(rows, columns) + toDelta: -> @getExtent() # Public: Returns a string representation of the range. toString: ->