remove unnecessary method

This commit is contained in:
Florian Weingarten
2014-09-05 14:12:30 +00:00
parent 60d8a213a5
commit aabbd8f1a1
2 changed files with 4 additions and 6 deletions
-5
View File
@@ -20,11 +20,6 @@ module Liquid
str
end
def self.error_from_token(e, token)
e.set_line_number_from_token(token) if e.is_a?(Liquid::Error)
e
end
def set_line_number_from_token(token)
return unless token.respond_to?(:line_number)
self.line_number = token.line_number