Skip to content

Commit 671e1d8

Browse files
committed
* lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.
[Bug ruby#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
1 parent 2c2a111 commit 671e1d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Sun Sep 18 22:48:54 2016 Kouhei Sutou <kou@cozmixng.org>
2+
3+
* lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.
4+
[Bug #12773][ruby-dev:49813]
5+
Reported by Kazuhiro NISHIYAMA. Thanks!!!
6+
17
Sun Sep 18 19:23:47 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
28

39
* lib/sync.rb: Fix NameError when error.

lib/rss/rss.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ def #{method_name}(need_convert=true, indent='')
326326

327327
def inherit_convert_attr_reader(*attrs)
328328
attrs.each do |attr|
329-
attr = attr.id2name if attr.kind_of?(Integer)
330329
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
331330
def #{attr}_without_inherit
332331
convert(@#{attr})
@@ -347,7 +346,6 @@ def #{attr}
347346

348347
def uri_convert_attr_reader(*attrs)
349348
attrs.each do |attr|
350-
attr = attr.id2name if attr.kind_of?(Integer)
351349
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
352350
def #{attr}_without_base
353351
convert(@#{attr})
@@ -368,7 +366,6 @@ def #{attr}
368366

369367
def convert_attr_reader(*attrs)
370368
attrs.each do |attr|
371-
attr = attr.id2name if attr.kind_of?(Integer)
372369
module_eval(<<-EOC, *get_file_and_line_from_caller(2))
373370
def #{attr}
374371
convert(@#{attr})
@@ -379,7 +376,6 @@ def #{attr}
379376

380377
def yes_clean_other_attr_reader(*attrs)
381378
attrs.each do |attr|
382-
attr = attr.id2name if attr.kind_of?(Integer)
383379
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
384380
attr_reader(:#{attr})
385381
def #{attr}?
@@ -391,7 +387,6 @@ def #{attr}?
391387

392388
def yes_other_attr_reader(*attrs)
393389
attrs.each do |attr|
394-
attr = attr.id2name if attr.kind_of?(Integer)
395390
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
396391
attr_reader(:#{attr})
397392
def #{attr}?
@@ -409,7 +404,6 @@ def csv_attr_reader(*attrs)
409404
end
410405
separator ||= ", "
411406
attrs.each do |attr|
412-
attr = attr.id2name if attr.kind_of?(Integer)
413407
module_eval(<<-EOC, __FILE__, __LINE__ + 1)
414408
attr_reader(:#{attr})
415409
def #{attr}_content

0 commit comments

Comments
 (0)