diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-30 15:16:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-30 15:16:07 +0000 |
commit | b52233555406f9cad23cac40fcee200ef2b3e5eb (patch) | |
tree | 14d15839a8b935c460deb0dd76b445d457aad562 /ext | |
parent | 60375cd6ba034de80012726f50c7c43c3a8a3b68 (diff) |
test_inadvertent_creation.rb: use Symbol.find
* ext/-test-/symbol/intern.c: Symbol.find is available now.
* test/-ext-/symbol/test_inadvertent_creation.rb (noninterned_name):
use Symbol.find instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/-test-/symbol/intern.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ext/-test-/symbol/intern.c b/ext/-test-/symbol/intern.c deleted file mode 100644 index 6ae86a6104..0000000000 --- a/ext/-test-/symbol/intern.c +++ /dev/null @@ -1,14 +0,0 @@ -#include "ruby.h" - -static VALUE -bug_sym_interned_p(VALUE self, VALUE name) -{ - ID id = rb_check_id(&name); - return id ? Qtrue : Qfalse; -} - -void -Init_intern(VALUE klass) -{ - rb_define_singleton_method(klass, "interned?", bug_sym_interned_p, 1); -} |