瀏覽代碼

Remove a useless method from the cluster option class.

Daniele Alessandri 14 年之前
父節點
當前提交
b087b9814d
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      lib/Predis/Options/ClientCluster.php

+ 1 - 5
lib/Predis/Options/ClientCluster.php

@@ -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':