From fbc9d6788941c1b843f851bffec2dc283b1c7c29 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 17 Mar 2024 03:23:04 +0100 Subject: [PATCH] Remove dead iteration code This was forgotten in b580cf216d9001f82c866bb9a6c8bcad1cc862d8. --- src/Readability.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Readability.php b/src/Readability.php index 6996e50..54f5569 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -1079,11 +1079,6 @@ class Readability implements LoggerAwareInterface } } - $candidates = $xpath->query('.//*[not(self::body) and (@class or @id or @style) and ((number(@readability) < 40) or not(@readability))]', $page->documentElement); - - for ($c = $candidates->length - 1; $c >= 0; --$c) { - $node = $candidates->item($c); - } unset($candidates); }