summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/object.c b/object.c
index 706455713c..5b2a255d0c 100644
--- a/object.c
+++ b/object.c
@@ -839,28 +839,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;