mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* 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 fext;
|
||||
int n;
|
||||
if (rb_scan_args(argc, argv, "01", &fext) == 0)
|
||||
str = rb_funcall(rb_cFile, rb_intern("basename"), 1, str);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue