瀏覽代碼

Remove useless code.

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

+ 0 - 11
lib/Predis/ConnectionFactory.php

@@ -58,15 +58,4 @@ class ConnectionFactory implements IConnectionFactory {
 
         return new $connection($parameters);
     }
-
-    public function createByScheme($scheme, $parameters = array()) {
-        if ($parameters instanceof IConnectionParameters) {
-            $parameters = $parameters->toArray();
-        }
-        if (is_array($parameters)) {
-            $parameters['scheme'] = $scheme;
-            return $this->create($parameters);
-        }
-        throw new \InvalidArgumentException("Invalid type for connection parameters");
-    }
 }