mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Removed a couple of redundant destructors.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user