소스 검색

LibWeb: Remove dead "outer loop" code in adoption agency algorithm

Brian Gianforcaro 3 년 전
부모
커밋
7defb893a9
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 8
      Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp

+ 0 - 8
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;