Skip to content

Commit

Permalink
Remove dead iteration code
Browse files Browse the repository at this point in the history
This was forgotten in b580cf2.
  • Loading branch information
jtojnar authored and j0k3r committed Mar 18, 2024
1 parent 8306691 commit e3f9b74
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Readability.php
Original file line number Diff line number Diff line change
Expand Up @@ -1079,11 +1079,6 @@ protected function grabArticle(?\DOMElement $page = null)
}
}

$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);
}

Expand Down

0 comments on commit e3f9b74

Please sign in to comment.