Browse Source

Remove duplicated code

Akinori MUSHA 7 years ago
parent
commit
83a6fd091a
1 changed files with 0 additions and 12 deletions
  1. 0 12
      lib/feedjira_extension.rb

+ 0 - 12
lib/feedjira_extension.rb

@@ -146,18 +146,6 @@ module FeedjiraExtension
         def authors
           _authors.reject(&:empty?)
         end
-
-        def alternate_link
-          links.find { |link|
-            link.is_a?(AtomLink) &&
-              link.rel == 'alternate' &&
-              (link.type == 'text/html'|| link.type.nil?)
-          }
-        end
-
-        def url
-          @url ||= (alternate_link || links.first).try!(:href)
-        end
       end
     end
   end