From 4fdcd8c9d166b5bbeba698aea50be83a062ba42a Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 08 Apr 2016 07:34:00 -0400
Subject: [PATCH] Remove redundant code

---
 program/steps/mail/move_del.inc |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc
index 7cd1c92..0856a26 100644
--- a/program/steps/mail/move_del.inc
+++ b/program/steps/mail/move_del.inc
@@ -32,10 +32,9 @@
 
 // move messages
 if ($RCMAIL->action == 'move' && !empty($_POST['_uid']) && strlen($_POST['_target_mbox'])) {
-    $target = rcube_utils::get_input_value('_target_mbox', rcube_utils::INPUT_POST, true);
-    $trash  = $RCMAIL->config->get('trash_mbox');
-
+    $target  = rcube_utils::get_input_value('_target_mbox', rcube_utils::INPUT_POST, true);
     $success = true;
+
     foreach (rcmail::get_uids(null, null, $multifolder) as $mbox => $uids) {
         if ($mbox === $target) {
             $count += count($uids);
@@ -68,7 +67,7 @@
         $addrows = true;
     }
 }
-// delete messages 
+// delete messages
 else if ($RCMAIL->action == 'delete' && !empty($_POST['_uid'])) {
     foreach (rcmail::get_uids(null, null, $multifolder) as $mbox => $uids) {
         $del      += (int)$RCMAIL->storage->delete_message($uids, $mbox);

--
Gitblit v1.9.1