From: zoranzoki21 Date: Thu, 16 May 2019 13:56:17 +0000 (+0200) Subject: Remove tryLastResult function from includes/specials/QueryPage.php X-Git-Tag: 1.34.0-rc.0~1646^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=94df8929f702c9726553ad14f864c87952e9838c;p=lhc%2Fweb%2Fwiklou.git Remove tryLastResult function from includes/specials/QueryPage.php It is deprecated in 1.27 Change-Id: Ia10696a3d8e700cdf889c15e9b16b9d8e3e7f94f --- diff --git a/includes/specialpage/QueryPage.php b/includes/specialpage/QueryPage.php index b8fde7d341..700672f12f 100644 --- a/includes/specialpage/QueryPage.php +++ b/includes/specialpage/QueryPage.php @@ -285,21 +285,6 @@ abstract class QueryPage extends SpecialPage { return []; } - /** - * Some special pages (for example SpecialListusers used to) might not return the - * current object formatted, but return the previous one instead. - * Setting this to return true will ensure formatResult() is called - * one more time to make sure that the very last result is formatted - * as well. - * - * @deprecated since 1.27 - * - * @return bool - */ - function tryLastResult() { - return false; - } - /** * Clear the cache and save new results * @@ -717,17 +702,6 @@ abstract class QueryPage extends SpecialPage { } } - # Flush the final result - if ( $this->tryLastResult() ) { - $row = null; - $line = $this->formatResult( $skin, $row ); - if ( $line ) { - $html[] = $this->listoutput - ? $line - : "
  • {$line}
  • \n"; - } - } - if ( !$this->listoutput ) { $html[] = $this->closeList(); }