summaryrefslogtreecommitdiff
path: root/lib/rss/1.0.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rss/1.0.rb')
-rw-r--r--lib/rss/1.0.rb78
1 files changed, 0 insertions, 78 deletions
diff --git a/lib/rss/1.0.rb b/lib/rss/1.0.rb
index ff21a3430d..03d118a444 100644
--- a/lib/rss/1.0.rb
+++ b/lib/rss/1.0.rb
@@ -60,18 +60,6 @@ module RSS
[@channel, @image, @textinput, *@item]
end
- def _tags
- rv = [
- [::RSS::URI, "channel"],
- [::RSS::URI, "image"],
- ].delete_if {|uri, name| __send__(name).nil?}
- @item.each do |item|
- rv << [::RSS::URI, "item"]
- end
- rv << [::RSS::URI, "textinput"] if @textinput
- rv
- end
-
class Li < Element
include RSS10
@@ -142,14 +130,6 @@ module RSS
def children
@li
end
-
- def _tags
- rv = []
- @li.each do |li|
- rv << [URI, "li"]
- end
- rv
- end
end
class Bag < Element
@@ -192,14 +172,6 @@ module RSS
def children
@li
end
-
- def _tags
- rv = []
- @li.each do |li|
- rv << [URI, "li"]
- end
- rv
- end
end
class Channel < Element
@@ -246,19 +218,6 @@ module RSS
[@image, @items, @textinput]
end
- def _tags
- [
- [::RSS::URI, 'title'],
- [::RSS::URI, 'link'],
- [::RSS::URI, 'description'],
- [::RSS::URI, 'image'],
- [::RSS::URI, 'items'],
- [::RSS::URI, 'textinput'],
- ].delete_if do |uri, name|
- __send__(name).nil?
- end
- end
-
def maker_target(maker)
maker.channel
end
@@ -366,12 +325,6 @@ module RSS
def children
[@Seq]
end
-
- def _tags
- rv = []
- rv << [URI, 'Seq'] unless @Seq.nil?
- rv
- end
end
end
@@ -408,16 +361,6 @@ module RSS
end
private
- def _tags
- [
- [::RSS::URI, 'title'],
- [::RSS::URI, 'url'],
- [::RSS::URI, 'link'],
- ].delete_if do |uri, name|
- __send__(name).nil?
- end
- end
-
def maker_target(maker)
maker.image
end
@@ -461,16 +404,6 @@ module RSS
end
private
- def _tags
- [
- [::RSS::URI, 'title'],
- [::RSS::URI, 'link'],
- [::RSS::URI, 'description'],
- ].delete_if do |uri, name|
- __send__(name).nil?
- end
- end
-
def maker_target(items)
if items.respond_to?("items")
# For backward compatibility
@@ -513,17 +446,6 @@ module RSS
end
private
- def _tags
- [
- [::RSS::URI, 'title'],
- [::RSS::URI, 'description'],
- [::RSS::URI, 'name'],
- [::RSS::URI, 'link'],
- ].delete_if do |uri, name|
- __send__(name).nil?
- end
- end
-
def maker_target(maker)
maker.textinput
end