remove bad functions:
authorDomas Mituzas <midom@users.mediawiki.org>
Fri, 20 Aug 2004 10:32:12 +0000 (10:32 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Fri, 20 Aug 2004 10:32:12 +0000 (10:32 +0000)
wfLimitResult() - replaced by Database::limitResult()
QueryPage::getOrderLimit() - replaced by getOrder() + Database::limitResult()

includes/Database.php
includes/QueryPage.php

index 04b21f6..6e8bfec 100644 (file)
@@ -1000,8 +1000,4 @@ function wfEmergencyAbort( &$conn, $error ) {
        wfErrorExit();
 }
 
-function wfLimitResult( $limit, $offset ) {
-       return " LIMIT ".(is_numeric($offset)?"{$offset},":"")."{$limit} ";
-}
-
 ?>
index 56ed2aa..ca5d371 100644 (file)
@@ -37,13 +37,6 @@ class QueryPage {
                return true;
        }
 
-       # Don't override this unless you're darn sure.
-       function getOrderLimit( $offset, $limit ) {
-               return ' ORDER BY value ' .
-                       ($this->sortDescending() ? 'DESC' : '')
-                       . wfLimitResult($limit,$offset);
-       }
-
        function getOrder() {
                return ' ORDER BY value ' .
                        ($this->sortDescending() ? 'DESC' : '');