mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
LibWeb: Remove dead "outer loop" code in adoption agency algorithm
This commit is contained in:
parent
6781d60e3a
commit
7defb893a9
Notes:
sideshowbarker
2024-07-18 02:51:29 +09:00
Author: https://github.com/bgianfo
Commit: 7defb893a9
Pull-request: https://github.com/SerenityOS/serenity/pull/10418
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue