From ea80020cb3d775f00bd4be7de3fa2de367abef20 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Tue, 2 Jul 2013 20:12:54 +0200 Subject: [PATCH] Remove unused differ methods --- lib/mutant/differ.rb | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/lib/mutant/differ.rb b/lib/mutant/differ.rb index 1eef1a08..2c13033a 100644 --- a/lib/mutant/differ.rb +++ b/lib/mutant/differ.rb @@ -49,6 +49,19 @@ module Mutant new(lines(old), lines(new)) end + # Break up source into lines + # + # @param [String] source + # + # @return [Array] + # + # @api private + # + def self.lines(source) + source.lines.map { |line| line.chomp } + end + private_class_method :lines + private # Return diffs @@ -72,29 +85,6 @@ module Mutant old.length > new.length ? old.length : new.length end - # Return length difference - # - # @return [Fixnum] - # - # @api private - # - def length_difference - new.size - old.size - end - - # Break up source into lines - # - # @param [String] source - # - # @return [Array] - # - # @api private - # - def self.lines(source) - source.lines.map { |line| line.chomp } - end - private_class_method :lines - # Return colorized diff line # # @param [String] line