diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | string.c | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Mon Apr 25 01:03:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * string.c (rb_to_id): remove unused variable. + Sun Apr 24 22:19:05 2011 Tadayoshi Funaba <tadf@dotrb.org> * complex.c, rational.c: omitted some method calls. @@ -7678,7 +7678,6 @@ ID rb_to_id(VALUE name) { VALUE tmp; - ID id; switch (TYPE(name)) { default: @@ -7696,7 +7695,7 @@ rb_to_id(VALUE name) case T_SYMBOL: return SYM2ID(name); } - return id; + return Qnil; /* not reached */ } /* |