* string.c (rb_to_id): remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
14491f13d7
commit
8ff8d61961
@ -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>
|
Sun Apr 24 22:19:05 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* complex.c, rational.c: omitted some method calls.
|
* complex.c, rational.c: omitted some method calls.
|
||||||
|
3
string.c
3
string.c
@ -7678,7 +7678,6 @@ ID
|
|||||||
rb_to_id(VALUE name)
|
rb_to_id(VALUE name)
|
||||||
{
|
{
|
||||||
VALUE tmp;
|
VALUE tmp;
|
||||||
ID id;
|
|
||||||
|
|
||||||
switch (TYPE(name)) {
|
switch (TYPE(name)) {
|
||||||
default:
|
default:
|
||||||
@ -7696,7 +7695,7 @@ rb_to_id(VALUE name)
|
|||||||
case T_SYMBOL:
|
case T_SYMBOL:
|
||||||
return SYM2ID(name);
|
return SYM2ID(name);
|
||||||
}
|
}
|
||||||
return id;
|
return Qnil; /* not reached */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user