Remove Predis\Client::setConnection().

This commit is contained in:
Daniele Alessandri
2011-01-09 14:41:32 +01:00
parent a992d9d0b8
commit c5169694ef
+1 -5
View File
@@ -15,7 +15,7 @@ class Client {
public function __construct($parameters = null, $clientOptions = null) {
$this->setupClient($clientOptions ?: new ClientOptions());
$this->setConnection($this->initializeConnection($parameters));
$this->_connection = $this->initializeConnection($parameters);
}
private function setupClient($options) {
@@ -94,10 +94,6 @@ class Client {
return $connection;
}
private function setConnection(IConnection $connection) {
$this->_connection = $connection;
}
public function getProfile() {
return $this->_profile;
}