mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
refactor: remove dead code (#4385)
This commit is contained in:
@@ -304,11 +304,9 @@ class XenForoBridge extends BridgeAbstract
|
||||
|
||||
// We can optimize performance by caching all but the last page
|
||||
if ($page != $lastpage) {
|
||||
$html = getSimpleHTMLDOMCached($pageurl)
|
||||
or returnServerError('Error loading contents from ' . $pageurl . '!');
|
||||
$html = getSimpleHTMLDOMCached($pageurl);
|
||||
} else {
|
||||
$html = getSimpleHTMLDOM($pageurl)
|
||||
or returnServerError('Error loading contents from ' . $pageurl . '!');
|
||||
$html = getSimpleHTMLDOM($pageurl);
|
||||
}
|
||||
|
||||
$html = defaultLinkTo($html, $hosturl);
|
||||
@@ -347,11 +345,9 @@ class XenForoBridge extends BridgeAbstract
|
||||
|
||||
// We can optimize performance by caching all but the last page
|
||||
if ($page != $lastpage) {
|
||||
$html = getSimpleHTMLDOMCached($pageurl)
|
||||
or returnServerError('Error loading contents from ' . $pageurl . '!');
|
||||
$html = getSimpleHTMLDOMCached($pageurl);
|
||||
} else {
|
||||
$html = getSimpleHTMLDOM($pageurl)
|
||||
or returnServerError('Error loading contents from ' . $pageurl . '!');
|
||||
$html = getSimpleHTMLDOM($pageurl);
|
||||
}
|
||||
|
||||
$html = defaultLinkTo($html, $hosturl);
|
||||
|
Reference in New Issue
Block a user