From: Michael J. Rubinsky Date: Thu, 13 Jan 2011 05:41:19 +0000 (-0500) Subject: remove unused code, ws X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1a6ac44f3fc66ba09a03b6fc1d3db95c5b5d6625;p=horde.git remove unused code, ws --- diff --git a/kronolith/lib/Driver/Sql.php b/kronolith/lib/Driver/Sql.php index d37d4d282..bc5c0581b 100644 --- a/kronolith/lib/Driver/Sql.php +++ b/kronolith/lib/Driver/Sql.php @@ -960,20 +960,4 @@ class Kronolith_Driver_Sql extends Kronolith_Driver return true; } - /** - * Determines if the given result is a PEAR error. If it is, logs the event - * and throws an exception. - * - * @param mixed $result The result to check. - * - * @throws Horde_Exception - */ - protected function handleError($result) - { - if ($result instanceof PEAR_Error) { - Horde::logMessage($result, 'ERR'); - throw new Kronolith_Exception($result); - } - } - } diff --git a/kronolith/lib/Geo/Mysql.php b/kronolith/lib/Geo/Mysql.php index fc6152c4d..391746f6b 100644 --- a/kronolith/lib/Geo/Mysql.php +++ b/kronolith/lib/Geo/Mysql.php @@ -9,12 +9,16 @@ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. * * @author Michael J. Rubinsky - * * @package Kronolith */ class Kronolith_Geo_Mysql extends Kronolith_Geo_Sql { - // Roughly 69 miles per distance unit + /** + * Conversion factor needed by search functions + * Roughly 69 miles per distance unit + * + * @var integer + */ private $_conversionFactor = 69; /**