* ext/pathname/pathname.c (path_basename): unused variable removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16cd13c051
commit
adff6d4477
@ -1,3 +1,7 @@
|
|||||||
|
Mon Aug 16 22:16:12 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/pathname/pathname.c (path_basename): unused variable removed.
|
||||||
|
|
||||||
Mon Aug 16 21:39:33 2010 Tanaka Akira <akr@fsij.org>
|
Mon Aug 16 21:39:33 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/pathname/pathname.c (path_basename): Pathname#basename translated
|
* ext/pathname/pathname.c (path_basename): Pathname#basename translated
|
||||||
|
@ -431,7 +431,6 @@ path_basename(int argc, VALUE *argv, VALUE self)
|
|||||||
{
|
{
|
||||||
VALUE str = get_strpath(self);
|
VALUE str = get_strpath(self);
|
||||||
VALUE fext;
|
VALUE fext;
|
||||||
int n;
|
|
||||||
if (rb_scan_args(argc, argv, "01", &fext) == 0)
|
if (rb_scan_args(argc, argv, "01", &fext) == 0)
|
||||||
str = rb_funcall(rb_cFile, rb_intern("basename"), 1, str);
|
str = rb_funcall(rb_cFile, rb_intern("basename"), 1, str);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user