Remove unused differ methods

This commit is contained in:
Markus Schirp 2013-07-02 20:12:54 +02:00
parent e5333b9980
commit ea80020cb3

View file

@ -49,6 +49,19 @@ module Mutant
new(lines(old), lines(new))
end
# Break up source into lines
#
# @param [String] source
#
# @return [Array<String>]
#
# @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<String>]
#
# @api private
#
def self.lines(source)
source.lines.map { |line| line.chomp }
end
private_class_method :lines
# Return colorized diff line
#
# @param [String] line