summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-26 05:28:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-26 05:28:24 +0000
commit4ce4f43f914dd8988bc7c78a30641d1911d20b98 (patch)
tree6e20b82ad2be1c371a62d49d8339f7ee4f02cca8 /test
parent3a247f648913997c248c51c47a15fee08e5083f3 (diff)
hash.c: remove dead code
* hash.c (rb_hash_reject): remove dead code for the deprecated behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_hash.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 8e0de3cc5d..70c04424db 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -558,18 +558,6 @@ class TestHash < Test::Unit::TestCase
assert_equal(h3, h.reject {|k,v| v })
assert_equal(base, h)
- unless RUBY_VERSION > "2.1.0"
- if @cls == Hash
- assert_empty(EnvUtil.verbose_warning {h.reject {false}})
- bug9275 = '[ruby-core:59254] [Bug #9275]'
- c = Class.new(Hash)
- assert_empty(EnvUtil.verbose_warning {c.new.reject {false}}, bug9275)
- else
- assert_match(/extra states/, EnvUtil.verbose_warning {h.reject {false}})
- end
- return
- end
-
h.instance_variable_set(:@foo, :foo)
h.default = 42
h.taint