mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
77525cef84
commit
8b23801a24
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue