Remove dead iteration code

This was forgotten in b580cf216d.
This commit is contained in:
Jan Tojnar
2024-10-10 09:01:45 +02:00
parent 8b1ef07401
commit d454c3a462
-5
View File
@@ -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); unset($candidates);
} }