Browse Source

Remove Predis\Client::setConnection().

Daniele Alessandri 14 years ago
parent
commit
c5169694ef
1 changed files with 1 additions and 5 deletions
  1. 1 5
      lib/Predis.php

+ 1 - 5
lib/Predis.php

@@ -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;
     }