From 671e1d890a4aec2e78c153143c5b8fcc2a53c06f Mon Sep 17 00:00:00 2001 From: kou Date: Sun, 18 Sep 2016 13:51:57 +0000 Subject: [PATCH] * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes. [Bug #12773][ruby-dev:49813] Reported by Kazuhiro NISHIYAMA. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rss/rss.rb | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80df804f4c..e723b74b70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Sep 18 22:48:54 2016 Kouhei Sutou + + * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes. + [Bug #12773][ruby-dev:49813] + Reported by Kazuhiro NISHIYAMA. Thanks!!! + Sun Sep 18 19:23:47 2016 Kazuhiro NISHIYAMA * lib/sync.rb: Fix NameError when error. diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 5b9c5d4745..d161366f92 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -326,7 +326,6 @@ EOC def inherit_convert_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, *get_file_and_line_from_caller(2)) def #{attr}_without_inherit convert(@#{attr}) @@ -347,7 +346,6 @@ EOC def uri_convert_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, *get_file_and_line_from_caller(2)) def #{attr}_without_base convert(@#{attr}) @@ -368,7 +366,6 @@ EOC def convert_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, *get_file_and_line_from_caller(2)) def #{attr} convert(@#{attr}) @@ -379,7 +376,6 @@ EOC def yes_clean_other_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, __FILE__, __LINE__ + 1) attr_reader(:#{attr}) def #{attr}? @@ -391,7 +387,6 @@ EOC def yes_other_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, __FILE__, __LINE__ + 1) attr_reader(:#{attr}) def #{attr}? @@ -409,7 +404,6 @@ EOC end separator ||= ", " attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, __FILE__, __LINE__ + 1) attr_reader(:#{attr}) def #{attr}_content