From 5a575b7eb08fb9f254f46eb340cbedb0c839446e Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 22 May 2012 04:33:24 -0400
Subject: [PATCH] Deprecate storage_connect() method

---
 program/include/rcube.php |   29 -----------------------------
 1 files changed, 0 insertions(+), 29 deletions(-)

diff --git a/program/include/rcube.php b/program/include/rcube.php
index e9add8d..cfad77c 100644
--- a/program/include/rcube.php
+++ b/program/include/rcube.php
@@ -362,35 +362,6 @@
 
 
   /**
-   * Connect to the mail storage server with stored session data
-   *
-   * @return bool True on success, False on error
-   */
-  public function storage_connect()
-  {
-    $storage = $this->get_storage();
-
-    if ($_SESSION['storage_host'] && !$storage->is_connected()) {
-      $host = $_SESSION['storage_host'];
-      $user = $_SESSION['username'];
-      $port = $_SESSION['storage_port'];
-      $ssl  = $_SESSION['storage_ssl'];
-      $pass = $this->decrypt($_SESSION['password']);
-
-      if (!$storage->connect($host, $user, $pass, $port, $ssl)) {
-        if (is_object($this->output))
-          $this->output->show_message($storage->get_error_code() == -1 ? 'storageerror' : 'sessionerror', 'error');
-      }
-      else {
-        $this->set_storage_prop();
-        return $storage->is_connected();
-      }
-    }
-
-    return false;
-  }
-
-  /**
    * Set storage parameters.
    * This must be done AFTER connecting to the server!
    */

--
Gitblit v1.9.1