Skip to content

Commit 01dabde

Browse files
committed
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
1 parent c223c92 commit 01dabde

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Sun Jun 8 04:18:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
2+
3+
* object.c (nil_plus): remove unused function. [ruby-core:13737]
4+
15
Sun Jun 8 04:15:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
26

37
* eval.c (rb_alias): do not call hook functions until initialization

object.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -812,28 +812,6 @@ nil_inspect(obj)
812812
return rb_str_new2("nil");
813813
}
814814

815-
#ifdef NIL_PLUS
816-
static VALUE
817-
nil_plus(x, y)
818-
VALUE x, y;
819-
{
820-
switch (TYPE(y)) {
821-
case T_NIL:
822-
case T_FIXNUM:
823-
case T_FLOAT:
824-
case T_BIGNUM:
825-
case T_STRING:
826-
case T_ARRAY:
827-
return y;
828-
default:
829-
rb_raise(rb_eTypeError, "tried to add %s(%s) to nil",
830-
RSTRING(rb_inspect(y))->ptr,
831-
rb_obj_classname(y));
832-
}
833-
/* not reached */
834-
}
835-
#endif
836-
837815
static VALUE
838816
main_to_s(obj)
839817
VALUE obj;

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-08"
33
#define RUBY_VERSION_CODE 185
44
#define RUBY_RELEASE_CODE 20080608
5-
#define RUBY_PATCHLEVEL 150
5+
#define RUBY_PATCHLEVEL 151
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)