Sfoglia il codice sorgente

Removed a couple of redundant destructors.

Daniele Alessandri 15 anni fa
parent
commit
41f2065287
1 ha cambiato i file con 0 aggiunte e 8 eliminazioni
  1. 0 8
      lib/Predis.php

+ 0 - 8
lib/Predis.php

@@ -17,10 +17,6 @@ class Client {
         $this->setupConnection($parameters);
     }
 
-    public function __destruct() {
-        $this->_connection->disconnect();
-    }
-
     public static function create(/* arguments */) {
         $argv = func_get_args();
         $argc = func_num_args();
@@ -924,10 +920,6 @@ class ConnectionCluster implements IConnection, \IteratorAggregate {
         $this->_ring = new Utilities\HashRing();
     }
 
-    public function __destruct() {
-        $this->disconnect();
-    }
-
     public function isConnected() {
         foreach ($this->_pool as $connection) {
             if ($connection->isConnected()) {