From 7da723cfbb81a7e40228db33b65fbf4eecd574ad Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 20 Nov 2007 16:16:53 +0000 Subject: * object.c (nil_plus): remove unused function. [ruby-core:13737] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 0ecb408bae..d0f104cae9 100644 --- a/object.c +++ b/object.c @@ -811,27 +811,6 @@ nil_inspect(VALUE obj) return rb_str_new2("nil"); } -#ifdef NIL_PLUS -static VALUE -nil_plus(VALUE x, VALUE y) -{ - switch (TYPE(y)) { - case T_NIL: - case T_FIXNUM: - case T_FLOAT: - case T_BIGNUM: - case T_STRING: - case T_ARRAY: - return y; - default: - rb_raise(rb_eTypeError, "tried to add %s(%s) to nil", - RSTRING_PTR(rb_inspect(y)), - rb_obj_classname(y)); - } - /* not reached */ -} -#endif - /*********************************************************************** * Document-class: TrueClass * -- cgit v1.2.3