Remove a useless method from the cluster option class.

This commit is contained in:
Daniele Alessandri
2011-05-06 16:32:39 +02:00
parent 4d1dcdb280
commit b087b9814d
+1 -5
View File
@@ -17,16 +17,12 @@ class ClientCluster extends Option {
public function validate($value) {
if (is_callable($value)) {
return $this->initializeFromCallable($value);
return $this->checkInstance(call_user_func($value));
}
$initializer = $this->getInitializer($value);
return $this->checkInstance($initializer());
}
protected function initializeFromCallable($callable) {
return $this->checkInstance(call_user_func($callable));
}
protected function getInitializer($fqnOrType) {
switch ($fqnOrType) {
case 'predis':