diff options
Diffstat (limited to 'lib/rss/0.9.rb')
-rw-r--r-- | lib/rss/0.9.rb | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb index 24af74a4ce..4007391f98 100644 --- a/lib/rss/0.9.rb +++ b/lib/rss/0.9.rb @@ -65,14 +65,6 @@ module RSS [@channel] end - def _tags - [ - ["", 'channel'], - ].delete_if do |uri, name| - __send__(name).nil? - end - end - def _attrs [ ["version", true, "rss_version"], @@ -112,35 +104,6 @@ module RSS [@skipDays, @skipHours, @image, @textInput, @cloud, *@item] end - def _tags - rv = [ - "title", - "link", - "description", - "language", - "copyright", - "managingEditor", - "webMaster", - "rating", - "docs", - "skipDays", - "skipHours", - "image", - "textInput", - "cloud", - ].delete_if do |name| - __send__(name).nil? - end.collect do |elem| - ["", elem] - end - - @item.each do - rv << ["", "item"] - end - - rv - end - def maker_target(maker) maker.channel end @@ -179,12 +142,6 @@ module RSS @day end - def _tags - @day.compact.collect do - ["", "day"] - end - end - class Day < Element include RSS09 @@ -217,12 +174,6 @@ module RSS @hour end - def _tags - @hour.compact.collect do - ["", "hour"] - end - end - class Hour < Element include RSS09 @@ -270,14 +221,6 @@ module RSS end private - def _tags - %w(url title link width height description).delete_if do |name| - __send__(name).nil? - end.collect do |elem| - ["", elem] - end - end - def maker_target(maker) maker.image end @@ -331,21 +274,6 @@ module RSS [@source, @enclosure, *@category].compact end - def _tags - rv = %w(title link description author comments - source enclosure).delete_if do |name| - __send__(name).nil? - end.collect do |name| - ["", name] - end - - @category.each do - rv << ["", "category"] - end - - rv - end - def maker_target(items) if items.respond_to?("items") # For backward compatibility @@ -383,10 +311,6 @@ module RSS end private - def _tags - [] - end - def maker_target(item) item.source end @@ -489,14 +413,6 @@ module RSS end private - def _tags - %w(title description name link).each do |name| - __send__(name).nil? - end.collect do |elem| - ["", elem] - end - end - def maker_target(maker) maker.textinput end |