From a3626110d9d67cba3dea060821c453a218023c57 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Mar 2012 04:20:45 +0000 Subject: * hash.c: remove unnecessary checks for Qundef in hash iterations. since hash use st_foreach_check for iterations, such checks are needless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/-test-/st/numhash/numhash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/-test-/st/numhash/numhash.c b/ext/-test-/st/numhash/numhash.c index c746ac5495..d4dbd1a0ce 100644 --- a/ext/-test-/st/numhash/numhash.c +++ b/ext/-test-/st/numhash/numhash.c @@ -42,10 +42,9 @@ numhash_aset(VALUE self, VALUE key, VALUE data) } static int -numhash_i(st_data_t key, st_data_t value, st_data_t arg, int error) +numhash_i(st_data_t key, st_data_t value, st_data_t arg) { VALUE ret; - if (key == 0 && value == 0 && error == 1) rb_raise(rb_eRuntimeError, "numhash modified"); ret = rb_yield_values(3, (VALUE)key, (VALUE)value, (VALUE)arg); if (ret == Qtrue) return ST_CHECK; return ST_CONTINUE; -- cgit v1.2.3