From 88a13516ece41a15f992b9b195bf60e89447d26d Mon Sep 17 00:00:00 2001 From: kou Date: Thu, 17 Nov 2005 04:53:59 +0000 Subject: [PATCH] * lib/rss/rss.rb : removed needless argument 'prefix'. * lib/rss/parser.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rss/parser.rb | 4 +--- lib/rss/rss.rb | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3aa5a9d16d..25d581c331 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 17 13:52:00 2005 Kouhei Sutou + + * lib/rss/rss.rb : removed needless argument 'prefix'. + + * lib/rss/parser.rb: ditto. + Wed Nov 16 23:24:17 2005 Nobuyoshi Nakada * common.mk (static-ruby): overridable. diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index 6a0a79cef6..cf4368dced 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -407,9 +407,7 @@ module RSS previous = @last_element next_element = klass.send(:new, *args) next_element.do_validate = @do_validate - prefix = "" - prefix << "#{klass.required_prefix}_" if klass.required_prefix - previous.funcall(:set_next_element, prefix, tag_name, next_element) + previous.funcall(:set_next_element, tag_name, next_element) @last_element = next_element @proc_stack.push Proc.new { |text, tags| p(@last_element.class) if DEBUG diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index fc0cd7b1c6..d2b7604488 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -665,7 +665,7 @@ EOC end end - def set_next_element(prefix, tag_name, next_element) + def set_next_element(tag_name, next_element) klass = next_element.class prefix = "" prefix << "#{klass.required_prefix}_" if klass.required_prefix