From 01dabde0e80631e1d9d713345688bd13c2544c55 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Sat, 7 Jun 2008 19:20:14 +0000 Subject: merge revision(s) 13989: * object.c (nil_plus): remove unused function. [ruby-core:13737] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 787b860d5d..18407cc02e 100644 --- a/object.c +++ b/object.c @@ -812,28 +812,6 @@ nil_inspect(obj) return rb_str_new2("nil"); } -#ifdef NIL_PLUS -static VALUE -nil_plus(x, y) - VALUE x, 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(rb_inspect(y))->ptr, - rb_obj_classname(y)); - } - /* not reached */ -} -#endif - static VALUE main_to_s(obj) VALUE obj; -- cgit v1.2.3