Remove since it generates overhead for nothing really useful.

This commit is contained in:
Daniele Alessandri
2011-03-04 13:05:28 +01:00
parent 0af002b3b9
commit d077aa67db
4 changed files with 4 additions and 8 deletions
+4
View File
@@ -127,6 +127,10 @@ class Client {
$this->_connection->disconnect();
}
public function quit() {
$this->disconnect();
}
public function isConnected() {
return $this->_connection->isConnected();
}
-4
View File
@@ -35,10 +35,6 @@ abstract class Command implements ICommand {
return null;
}
public function closesConnection() {
return false;
}
protected function filterArguments(Array $arguments) {
return $arguments;
}
-1
View File
@@ -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();
-3
View File
@@ -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);
}