mirror of
https://github.com/predis/predis.git
synced 2026-08-19 06:31:41 +00:00
Remove a useless method.
This commit is contained in:
+1
-10
@@ -19,7 +19,7 @@ class Client {
|
||||
|
||||
private function setupClient($options) {
|
||||
$this->_options = $this->filterClientOptions($options);
|
||||
$this->setProfile($this->_options->profile);
|
||||
$this->_profile = $this->_options->profile;
|
||||
}
|
||||
|
||||
private function filterClientOptions($options) {
|
||||
@@ -106,15 +106,6 @@ class Client {
|
||||
$this->_connection = $connection;
|
||||
}
|
||||
|
||||
private function setProfile($profile) {
|
||||
if (!($profile instanceof ServerProfile || is_string($profile))) {
|
||||
throw new \InvalidArgumentException(
|
||||
"Invalid type for server profile, \Predis\Profiles\ServerProfile or string expected"
|
||||
);
|
||||
}
|
||||
$this->_profile = is_string($profile) ? ServerProfile::get($profile) : $profile;
|
||||
}
|
||||
|
||||
public function getProfile() {
|
||||
return $this->_profile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user