From: Jan Schneider Date: Wed, 10 Feb 2010 16:31:25 +0000 (+0100) Subject: Remove unused rename() method. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=631d2681262dd360a84d187492f5ef55f9854e79;p=horde.git Remove unused rename() method. --- diff --git a/kronolith/lib/Driver.php b/kronolith/lib/Driver.php index 67a2938cc..c96242648 100644 --- a/kronolith/lib/Driver.php +++ b/kronolith/lib/Driver.php @@ -122,19 +122,6 @@ class Kronolith_Driver } /** - * Renames a calendar. - * - * @param string $from The current name of the calendar. - * @param string $to The new name of the calendar. - * - * @return mixed True or a PEAR_Error on failure. - */ - public function rename($from, $to) - { - return true; - } - - /** * Searches a calendar. * * @param object $query An object with the criteria to search for. diff --git a/kronolith/lib/Driver/Kolab.php b/kronolith/lib/Driver/Kolab.php index 0185672f1..011a6e445 100644 --- a/kronolith/lib/Driver/Kolab.php +++ b/kronolith/lib/Driver/Kolab.php @@ -448,24 +448,6 @@ class Kronolith_Driver_Kolab extends Kronolith_Driver if (is_callable('Kolab', 'triggerFreeBusyUpdate')) { Kolab::triggerFreeBusyUpdate($this->_store->parseFolder($calendar)); } - return true; - } - - /** - * Rename a calendar. - * - * @param string $from The current name of the calendar. - * @param string $to The new name of the calendar. - * - * @return mixed True or a PEAR_Error on failure. - */ - public function rename($from, $to) - { - // FIXME: We can't do much here. We'd need to be called after - // renaming the share here. This needs to be checked again. - // kolab/issue2249 ([horde/kronolith] Kronolith is unable to - // trigger a free/busy update on a folder rename) - return true; } /** diff --git a/kronolith/lib/Forms/EditResource.php b/kronolith/lib/Forms/EditResource.php index cdbeb7ced..d46b93a80 100644 --- a/kronolith/lib/Forms/EditResource.php +++ b/kronolith/lib/Forms/EditResource.php @@ -61,12 +61,6 @@ class Kronolith_EditResourceForm extends Horde_Form { $this->_resource->set('name', $new_name); $this->_resource->set('description', $this->_vars->get('description')); $this->_resource->set('response_type', $this->_vars->get('responsetype')); - if ($original_name != $new_name) { - $result = Kronolith::getDriver()->rename($original_name, $new_name); - if (is_a($result, 'PEAR_Error')) { - return PEAR::raiseError(sprintf(_("Unable to rename \"%s\": %s"), $original_name, $result->getMessage())); - } - } /* Update group memberships */ $driver = Kronolith::getDriver('Resource'); diff --git a/kronolith/lib/Forms/EditResourceGroup.php b/kronolith/lib/Forms/EditResourceGroup.php index fe7959d9f..92402dc1c 100644 --- a/kronolith/lib/Forms/EditResourceGroup.php +++ b/kronolith/lib/Forms/EditResourceGroup.php @@ -53,12 +53,6 @@ class Kronolith_EditResourceGroupForm extends Horde_Form { $this->_resource->set('name', $new_name); $this->_resource->set('description', $this->_vars->get('description')); $this->_resource->set('members', $this->_vars->get('members')); - if ($original_name != $new_name) { - $result = Kronolith::getDriver()->rename($original_name, $new_name); - if (is_a($result, 'PEAR_Error')) { - return PEAR::raiseError(sprintf(_("Unable to rename \"%s\": %s"), $original_name, $result->getMessage())); - } - } $result = $this->_resource->save(); if (is_a($result, 'PEAR_Error')) {