Commit 29f18fdd authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove unused methods from DocScanner.

These are no more called by any Tag classes.
parent 5b2fa8a4
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -32,12 +32,6 @@ module JsDuck
      @current_tag[:doc] = "" unless @current_tag.has_key?(:doc)
    end

    # Forgets the previously parsed tag
    def remove_last_tag
      @tags.pop
      @current_tag = @tags.last
    end

    # matches {type} if possible and sets it on @current_tag
    # Also checks for {optionality=} in type definition.
    def maybe_type
@@ -87,14 +81,6 @@ module JsDuck
      end
    end

    # matches identifier name if possible and sets it on @current_tag
    def maybe_name
      skip_horiz_white
      if look(@ident_pattern)
        @current_tag[:name] = match(@ident_pattern)
      end
    end

    # matches ident.chain if possible and sets it on @current_tag
    def maybe_ident_chain(propname)
      skip_horiz_white