* object.c (convert_type): Cleanup unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a9e662ac7a
commit
68b23a0de7
5
object.c
5
object.c
@ -2005,7 +2005,6 @@ convert_type(VALUE val, const char *tname, const char *method, int raise)
|
|||||||
{
|
{
|
||||||
ID m = 0;
|
ID m = 0;
|
||||||
int i;
|
int i;
|
||||||
VALUE args[4];
|
|
||||||
VALUE r;
|
VALUE r;
|
||||||
|
|
||||||
for (i=0; conv_method_names[i].method; i++) {
|
for (i=0; conv_method_names[i].method; i++) {
|
||||||
@ -2016,10 +2015,6 @@ convert_type(VALUE val, const char *tname, const char *method, int raise)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!m) m = rb_intern(method);
|
if (!m) m = rb_intern(method);
|
||||||
args[0] = val;
|
|
||||||
args[1] = (VALUE)m;
|
|
||||||
args[2] = (VALUE)raise;
|
|
||||||
args[3] = (VALUE)tname;
|
|
||||||
r = rb_check_funcall(val, m, 0, 0);
|
r = rb_check_funcall(val, m, 0, 0);
|
||||||
if (r == Qundef) {
|
if (r == Qundef) {
|
||||||
if (raise) {
|
if (raise) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user