summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-24 08:29:03 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-24 08:29:03 (GMT)
commitd92b0dc58aa161801a5e5d4a484e67a9dd61bb65 (patch)
tree49c08d39782c0199163034db490aa9f8b259732f /object.c
parent43b5e3d7cddad91cb9fd2f583c926519ea39c90c (diff)
vm_method.c: remove redundant check
* vm_method.c (rb_attr): remove redundant check. attribute names given in ruby level should be checked before calling this function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/object.c b/object.c
index a41839b..6857579 100644
--- a/object.c
+++ b/object.c
@@ -1924,12 +1924,6 @@ check_setter_id(VALUE name, int (*valid_sym_p)(VALUE), int (*valid_name_p)(VALUE
}
static int
-rb_is_attr_id(ID id)
-{
- return rb_is_local_id(id) || rb_is_const_id(id);
-}
-
-static int
rb_is_attr_name(VALUE name)
{
return rb_is_local_name(name) || rb_is_const_name(name);
@@ -1949,15 +1943,6 @@ id_for_attr(VALUE name)
return id_for_setter(name, attr, invalid_attribute_name);
}
-ID
-rb_check_attr_id(ID id)
-{
- if (!rb_is_attr_id(id)) {
- rb_name_error_str(id, invalid_attribute_name, QUOTE_ID(id));
- }
- return id;
-}
-
/*
* call-seq:
* attr_reader(symbol, ...) -> nil