From: Gunnar Wrobel Date: Tue, 29 Sep 2009 12:06:14 +0000 (+0200) Subject: Already provided by the base class. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dbee6c462bd7cf1707c8c4473314b81c795a53ad;p=horde.git Already provided by the base class. --- diff --git a/framework/History/lib/Horde/History/Sql.php b/framework/History/lib/Horde/History/Sql.php index 91bdd6288..734d9403d 100644 --- a/framework/History/lib/Horde/History/Sql.php +++ b/framework/History/lib/Horde/History/Sql.php @@ -224,40 +224,6 @@ class Horde_History_Sql extends Horde_History } /** - * Gets the timestamp of the most recent change to $guid. - * - * @param string $guid The name of the history entry to retrieve. - * @param string $action An action: 'add', 'modify', 'delete', etc. - * - * @return integer The timestamp, or 0 if no matching entry is found. - * - * @throws Horde_Exception - */ - public function getActionTimestamp($guid, $action) - { - /* This implementation still works, but we should be able to - * get much faster now with a SELECT MAX(history_ts) - * ... query. */ - try { - $history = $this->getHistory($guid); - } catch (Horde_Exception $e) { - return 0; - } - - $last = 0; - - if (is_array($history->data)) { - foreach ($history->data as $entry) { - if (($entry['action'] == $action) && ($entry['ts'] > $last)) { - $last = $entry['ts']; - } - } - } - - return (int)$last; - } - - /** * Remove one or more history entries by name. * * @param array $names The history entries to remove.