Remove unused code
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 28 Apr 2010 06:16:49 +0000 (00:16 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 29 Apr 2010 17:19:00 +0000 (11:19 -0600)
imp/lib/Ui/Mimp.php

index 8c94048..efe784c 100644 (file)
@@ -53,33 +53,4 @@ class IMP_Ui_Mimp
         return $out . '</ol>';
     }
 
-    /**
-     * [Un]Delete message(s).
-     *
-     * @param string $action  Either 'delete' or 'undelete'.
-     * @param mixed $uids     See IMP::parseIndicesList().
-     * @param string $token   Mailbox action token.
-     *
-     * @return boolean  True if messages were removed from the mailbox.
-     */
-    public function delete($action, $uids, $token)
-    {
-        switch ($action) {
-        case 'delete':
-            try {
-                Horde::checkRequestToken('imp.message-mimp', $token);
-                return (bool)$GLOBALS['injector']->getInstance('IMP_Message')->delete($uids);
-            } catch (Horde_Exception $e) {
-                $GLOBALS['notification']->push($e);
-            }
-            break;
-
-        case 'undelete':
-            $imp_message->undelete($uids);
-            break;
-        }
-
-        return false;
-    }
-
 }