summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-04-27 20:11:40 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-29 00:07:31 +0200
commit56e8e0daa171bbda873583d801de9391734ab4e4 (patch)
tree85c88d96312b1445afc9fc0a07c2b9d1837073fa /Userland/Libraries/LibWeb/CSS
parent2b3185955eacb76ed171ddb19bf97b3032a6e4f4 (diff)
downloadserenity-56e8e0daa171bbda873583d801de9391734ab4e4.zip
LibWeb: Remove TokenStream::position() and ::rewind_to_position()
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp7
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.h2
2 files changed, 0 insertions, 9 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
index 662189f2e4..90e704e7a0 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp
@@ -115,13 +115,6 @@ void TokenStream<T>::reconsume_current_input_token()
}
template<typename T>
-void TokenStream<T>::rewind_to_position(int position)
-{
- VERIFY(position <= m_iterator_offset);
- m_iterator_offset = position;
-}
-
-template<typename T>
void TokenStream<T>::skip_whitespace()
{
while (peek_token().is(Token::Type::Whitespace))
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
index d2a3e0cf43..c378b30625 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
@@ -104,8 +104,6 @@ public:
void reconsume_current_input_token();
StateTransaction begin_transaction() { return StateTransaction(*this); }
- int position() const { return m_iterator_offset; }
- void rewind_to_position(int);
void skip_whitespace();