Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Unified Diff: Source/core/html/parser/HTMLTokenizer.cpp

Issue 1309673006: Remove unused methods in HTMLTokenizer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/parser/HTMLTokenizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLTokenizer.cpp
diff --git a/Source/core/html/parser/HTMLTokenizer.cpp b/Source/core/html/parser/HTMLTokenizer.cpp
index 7fe2b4c06d9b62abbdd583284a592792c6172cf7..47b00b223c7a843dbc1adb1e6f832b9e59b8e9fa 100644
--- a/Source/core/html/parser/HTMLTokenizer.cpp
+++ b/Source/core/html/parser/HTMLTokenizer.cpp
@@ -124,37 +124,6 @@ void HTMLTokenizer::reset()
m_additionalAllowedCharacter = '\0';
}
-bool HTMLTokenizer::canCreateCheckpoint() const
-{
- if (!m_appropriateEndTagName.isEmpty())
- return false;
- if (!m_temporaryBuffer.isEmpty())
- return false;
- if (!m_bufferedEndTagName.isEmpty())
- return false;
- return true;
-}
-
-void HTMLTokenizer::createCheckpoint(Checkpoint& result) const
-{
- ASSERT(canCreateCheckpoint());
- result.options = m_options;
- result.state = m_state;
- result.additionalAllowedCharacter = m_additionalAllowedCharacter;
- result.skipNextNewLine = m_inputStreamPreprocessor.skipNextNewLine();
- result.shouldAllowCDATA = m_shouldAllowCDATA;
-}
-
-void HTMLTokenizer::restoreFromCheckpoint(const Checkpoint& checkpoint)
-{
- m_token = 0;
- m_options = checkpoint.options;
- m_state = checkpoint.state;
- m_additionalAllowedCharacter = checkpoint.additionalAllowedCharacter;
- m_inputStreamPreprocessor.reset(checkpoint.skipNextNewLine);
- m_shouldAllowCDATA = checkpoint.shouldAllowCDATA;
-}
-
inline bool HTMLTokenizer::processEntity(SegmentedString& source)
{
bool notEnoughCharacters = false;
« no previous file with comments | « Source/core/html/parser/HTMLTokenizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698