From 8b23801a248fe75adaa6e720feadfec5300c6aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Tue, 1 Apr 2025 03:24:56 +0200 Subject: [PATCH] Remove ServoParser::do_parse_sync (#36255) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The indirection through ServoParser::parse_sync does nothing, so the method can simply be called directly. Signed-off-by: Simon Wülker --- components/script/dom/servoparser/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/components/script/dom/servoparser/mod.rs b/components/script/dom/servoparser/mod.rs index 0551200728f..a3881ef7f2e 100644 --- a/components/script/dom/servoparser/mod.rs +++ b/components/script/dom/servoparser/mod.rs @@ -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