aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-16 13:16:41 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-16 13:16:41 +0000
commitadff6d4477a77eaf03a377d5b37365e8b2b0de04 (patch)
tree02960ac4b1198ef1f984c546972bd99966d1cfcd
parent16cd13c05188bf52c5dfb056f02ebf4574bb1bc3 (diff)
downloadruby-adff6d4477a77eaf03a377d5b37365e8b2b0de04.tar.gz
* 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
-rw-r--r--ChangeLog4
-rw-r--r--ext/pathname/pathname.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d193f1375d..b52ed2324b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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