Skip to content

Commit

Permalink
Bug 1749935 - Remove unused nsParser::SetUnusedInput. r=hsivonen
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderbeken committed Feb 14, 2022
1 parent 6f320f7 commit 113b713
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
10 changes: 0 additions & 10 deletions parser/htmlparser/nsParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,16 +452,6 @@ CParserContext* nsParser::PopContext() {
return oldContext;
}

/**
* Call this when you want control whether or not the parser will parse
* and tokenize input (TRUE), or whether it just caches input to be
* parsed later (FALSE).
*
* @param aState determines whether we parse/tokenize or just cache.
* @return current state
*/
void nsParser::SetUnusedInput(nsString& aBuffer) { mUnusedInput = aBuffer; }

/**
* Call this when you want to *force* the parser to terminate the
* parsing process altogether. This is binary -- so once you terminate
Expand Down
20 changes: 0 additions & 20 deletions parser/htmlparser/nsParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,6 @@ class nsParser final : public nsIParser,
*/
NS_IMETHOD_(bool) IsComplete() override;

/**
* This rather arcane method (hack) is used as a signal between the
* DTD and the parser. It allows the DTD to tell the parser that content
* that comes through (parser::parser(string)) but not consumed should
* propagate into the next string based parse call.
*
* @update gess 9/1/98
* @param aState determines whether we propagate unused string content.
* @return current state
*/
void SetUnusedInput(nsString& aBuffer);

/**
* This method gets called (automatically) during incremental parsing
* @update gess5/11/98
Expand Down Expand Up @@ -256,14 +244,6 @@ class nsParser final : public nsIParser,
*/
virtual bool IsScriptCreated() override;

/**
* Set to parser state to indicate whether parsing tokens can be interrupted
* @param aCanInterrupt true if parser can be interrupted, false if it can
* not be interrupted.
* @update kmcclusk 5/18/98
*/
void SetCanInterrupt(bool aCanInterrupt);

/**
* This is called when the final chunk has been
* passed to the parser and the content sink has
Expand Down

0 comments on commit 113b713

Please sign in to comment.