mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Remove unused code and test
This test was failing in JRuby, and since it's not being used anywhere in Haml any more, it's safe to just remove it.
This commit is contained in:
parent
bc4fa174d2
commit
b2900feceb
2 changed files with 0 additions and 19 deletions
|
@ -302,14 +302,6 @@ module Haml
|
||||||
obj
|
obj
|
||||||
end
|
end
|
||||||
|
|
||||||
# Throws a NotImplementedError for an abstract method.
|
|
||||||
#
|
|
||||||
# @param obj [Object] `self`
|
|
||||||
# @raise [NotImplementedError]
|
|
||||||
def abstract(obj)
|
|
||||||
raise NotImplementedError.new("#{obj.class} must implement ##{caller_info[2]}")
|
|
||||||
end
|
|
||||||
|
|
||||||
# Silence all output to STDERR within a block.
|
# Silence all output to STDERR within a block.
|
||||||
#
|
#
|
||||||
# @yield A block in which no output will be printed to STDERR
|
# @yield A block in which no output will be printed to STDERR
|
||||||
|
|
|
@ -260,17 +260,6 @@ class UtilTest < Test::Unit::TestCase
|
||||||
assert_equal([:before, :around_before, :loaded], obj2.arr)
|
assert_equal([:before, :around_before, :loaded], obj2.arr)
|
||||||
end
|
end
|
||||||
|
|
||||||
class FooBar
|
|
||||||
def foo
|
|
||||||
Haml::Util.abstract(self)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_abstract
|
|
||||||
assert_raise_message(NotImplementedError,
|
|
||||||
"UtilTest::FooBar must implement #foo") {FooBar.new.foo}
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_def_static_method
|
def test_def_static_method
|
||||||
klass = Class.new
|
klass = Class.new
|
||||||
def_static_method(klass, :static_method, [:arg1, :arg2],
|
def_static_method(klass, :static_method, [:arg1, :arg2],
|
||||||
|
|
Loading…
Add table
Reference in a new issue