diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/pathname/pathname.c | 1 |
2 files changed, 4 insertions, 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 diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index 06a904e10e..36e5cb378a 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -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 |