1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* object.c (nil_plus): remove unused function. [ruby-core:13737]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-11-20 16:18:05 +00:00
parent 58721916bc
commit 641be733a6
3 changed files with 7 additions and 25 deletions

View file

@ -1,3 +1,7 @@
Wed Nov 21 01:04:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (nil_plus): remove unused function. [ruby-core:13737]
Sun Nov 18 14:03:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_alias): do not call hook functions until initialization

View file

@ -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;

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.8.6"
#define RUBY_RELEASE_DATE "2007-11-18"
#define RUBY_RELEASE_DATE "2007-11-21"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20071118
#define RUBY_RELEASE_CODE 20071121
#define RUBY_PATCHLEVEL 5000
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 6
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 11
#define RUBY_RELEASE_DAY 18
#define RUBY_RELEASE_DAY 21
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];