Remove ServoParser::do_parse_sync (#36255)

The indirection through ServoParser::parse_sync does nothing, so the
method can simply be called directly.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-04-01 03:24:56 +02:00 committed by GitHub
parent 77525cef84
commit 8b23801a24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -558,14 +558,6 @@ impl ServoParser {
}
fn parse_sync(&self, can_gc: CanGc) {
match self.tokenizer {
Tokenizer::Html(_) => self.do_parse_sync(can_gc),
Tokenizer::AsyncHtml(_) => self.do_parse_sync(can_gc),
Tokenizer::Xml(_) => self.do_parse_sync(can_gc),
}
}
fn do_parse_sync(&self, can_gc: CanGc) {
assert!(self.script_input.is_empty());
// This parser will continue to parse while there is either pending input or