From 95281cb81ec55da5472e0ce903e2922727e58bc1 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Fri, 20 Aug 2004 10:32:12 +0000 Subject: [PATCH] remove bad functions: wfLimitResult() - replaced by Database::limitResult() QueryPage::getOrderLimit() - replaced by getOrder() + Database::limitResult() --- includes/Database.php | 4 ---- includes/QueryPage.php | 7 ------- 2 files changed, 11 deletions(-) diff --git a/includes/Database.php b/includes/Database.php index 04b21f66c4..6e8bfec1c8 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -1000,8 +1000,4 @@ function wfEmergencyAbort( &$conn, $error ) { wfErrorExit(); } -function wfLimitResult( $limit, $offset ) { - return " LIMIT ".(is_numeric($offset)?"{$offset},":"")."{$limit} "; -} - ?> diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 56ed2aa85d..ca5d371101 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -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' : ''); -- 2.20.1