Commit d94f7872 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove leftover #merge method from Tag::Enum.

Was forgotten in at previous refactor.
parent ffdf8f41
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -41,14 +41,6 @@ module JsDuck::Tag
      }
    end

    # Takes the :enum always from docs, but the :doc_only can come
    # from either code or docs.
    def merge(h, docs, code)
      return unless docs[:enum]
      h[:enum] = docs[:enum]
      h[:enum][:doc_only] = docs[:enum][:doc_only] || (code[:enum] && code[:enum][:doc_only])
    end

    def to_html(cls)
      if cls[:enum][:doc_only]
        first = cls[:members][0] || {:name => 'foo', :default => '"foo"'}