From 36992e01734eebb93a2111dc54eb0462e1179fd8 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 8 May 2009 08:03:44 -0700 Subject: [PATCH] Remove some unecessary code. --- lib/compass/exec.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/compass/exec.rb b/lib/compass/exec.rb index f954e6e6..401dc6dd 100644 --- a/lib/compass/exec.rb +++ b/lib/compass/exec.rb @@ -21,10 +21,6 @@ module Compass end def get_line(exception) - # SyntaxErrors have weird line reporting - # when there's trailing whitespace, - # which there is for Haml documents. - return exception.message.scan(/:(\d+)/)[0] if exception.is_a?(::Haml::SyntaxError) exception.backtrace[0].scan(/:(\d+)/)[0] end module_function :report_error, :get_file, :get_line