Remove duplicate definitions of addLimitOffset()
authorChuck Hagenbuch <chuck@horde.org>
Mon, 5 Jul 2010 20:01:13 +0000 (16:01 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 5 Jul 2010 20:01:13 +0000 (16:01 -0400)
framework/Db/lib/Horde/Db/Adapter/Mysql.php
framework/Db/lib/Horde/Db/Adapter/Mysqli.php

index 9930460..38d4ca0 100644 (file)
@@ -313,25 +313,6 @@ class Horde_Db_Adapter_Mysql extends Horde_Db_Adapter_Base
         $this->_transactionStarted = false;
     }
 
-    /**
-     * Appends +LIMIT+ and +OFFSET+ options to a SQL statement.
-     *
-     * @param   string  $sql
-     * @param   array   $options
-     * @return  string
-     */
-    public function addLimitOffset($sql, $options)
-    {
-        if (isset($options['limit']) && $limit = $options['limit']) {
-            if (isset($options['offset']) && $offset = $options['offset']) {
-                $sql .= " LIMIT $offset, $limit";
-            } else {
-                $sql .= " LIMIT $limit";
-            }
-        }
-        return $sql;
-    }
-
 
     /*##########################################################################
     # Protected
index 6b5b52b..a5d1378 100644 (file)
@@ -348,25 +348,6 @@ class Horde_Db_Adapter_Mysqli extends Horde_Db_Adapter_Base
         $this->_connection->autocommit(false);
     }
 
-    /**
-     * Appends +LIMIT+ and +OFFSET+ options to a SQL statement.
-     *
-     * @param   string  $sql
-     * @param   array   $options
-     * @return  string
-     */
-    public function addLimitOffset($sql, $options)
-    {
-        if (isset($options['limit']) && $limit = $options['limit']) {
-            if (isset($options['offset']) && $offset = $options['offset']) {
-                $sql .= " LIMIT $offset, $limit";
-            } else {
-                $sql .= " LIMIT $limit";
-            }
-        }
-        return $sql;
-    }
-
 
     /*##########################################################################
     # Protected