diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-10-10 00:06:13 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-10 13:48:04 +0200 |
commit | 7defb893a9c7ad62c8f6a545fcc0e74b01692e55 (patch) | |
tree | 3d8ae4348ccc143f49fb1d7c4725e5c3e584f72d /Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | |
parent | 6781d60e3acb253c1544e1fe976311d7e6064d8f (diff) | |
download | serenity-7defb893a9c7ad62c8f6a545fcc0e74b01692e55.zip |
LibWeb: Remove dead "outer loop" code in adoption agency algorithm
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp index 50dd2f08e9..d9fc29f64b 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp @@ -1060,14 +1060,6 @@ HTMLParser::AdoptionAgencyAlgorithmOutcome HTMLParser::run_the_adoption_agency_a return AdoptionAgencyAlgorithmOutcome::DoNothing; } - size_t outer_loop_counter = 0; - - //OuterLoop: - if (outer_loop_counter >= 8) - return AdoptionAgencyAlgorithmOutcome::DoNothing; - - ++outer_loop_counter; - auto formatting_element = m_list_of_active_formatting_elements.last_element_with_tag_name_before_marker(subject); if (!formatting_element) return AdoptionAgencyAlgorithmOutcome::RunAnyOtherEndTagSteps; |