From 1a6ac44f3fc66ba09a03b6fc1d3db95c5b5d6625 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 13 Jan 2011 00:41:19 -0500 Subject: [PATCH] remove unused code, ws --- kronolith/lib/Driver/Sql.php | 16 ---------------- kronolith/lib/Geo/Mysql.php | 8 ++++++-- 2 files changed, 6 insertions(+), 18 deletions(-) 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; /** -- 2.11.0