Browse Source

Remove since it generates overhead for nothing really useful.

Daniele Alessandri 14 years ago
parent
commit
d077aa67db

+ 4 - 0
lib/Predis/Client.php

@@ -127,6 +127,10 @@ class Client {
         $this->_connection->disconnect();
     }
 
+    public function quit() {
+        $this->disconnect();
+    }
+
     public function isConnected() {
         return $this->_connection->isConnected();
     }

+ 0 - 4
lib/Predis/Command.php

@@ -35,10 +35,6 @@ abstract class Command implements ICommand {
         return null;
     }
 
-    public function closesConnection() {
-        return false;
-    }
-
     protected function filterArguments(Array $arguments) {
         return $arguments;
     }

+ 0 - 1
lib/Predis/ICommand.php

@@ -7,7 +7,6 @@ use Predis\Distribution\IDistributionStrategy;
 interface ICommand {
     public function getCommandId();
     public function canBeHashed();
-    public function closesConnection();
     public function getHash(IDistributionStrategy $distributor);
     public function setArgumentsArray(Array $arguments);
     public function getArguments();

+ 0 - 3
lib/Predis/Network/ConnectionBase.php

@@ -40,9 +40,6 @@ abstract class ConnectionBase implements IConnectionSingle {
 
     public function executeCommand(ICommand $command) {
         $this->writeCommand($command);
-        if ($command->closesConnection()) {
-            return $this->disconnect();
-        }
         return $this->readResponse($command);
     }