Remove unneeded code

This commit is contained in:
Rafael Mendonça França 2012-01-06 22:52:02 -03:00
parent 5a740b8386
commit 0a5f3dedf4
1 changed files with 0 additions and 13 deletions

View File

@ -26,17 +26,4 @@ module Rails
add_filter { |line| line.sub(gems_regexp, '\2 (\3) \4') }
end
end
# For installing the BacktraceCleaner in the test/unit
module BacktraceFilterForTestUnit #:nodoc:
def self.included(klass)
klass.send :alias_method_chain, :filter_backtrace, :cleaning
end
def filter_backtrace_with_cleaning(backtrace, prefix=nil)
backtrace = filter_backtrace_without_cleaning(backtrace, prefix)
backtrace = backtrace.first.split("\n") if backtrace.size == 1
Rails.backtrace_cleaner.clean(backtrace)
end
end
end