mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 5 additions and 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>
|
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…
Add table
Reference in a new issue