Permalink
Browse files

remove obsolete code

  • Loading branch information...
1 parent 7e1e6be commit 3922b8da273814829f7839ab640c31a2773954fc @d1rk committed Sep 21, 2012
Showing with 1 addition and 16 deletions.
  1. +1 −16 storage/cache/adapter/Redis.php
@@ -117,22 +117,7 @@ protected function _init() {
* @return mixed Returns the result of the method call
*/
public function __call($method, $params = array()) {
- switch (count($params)) {
- case 0:
- return $this->connection->{$method}();
- case 1:
- return $this->connection->{$method}($params[0]);
- case 2:
- return $this->connection->{$method}($params[0], $params[1]);
- case 3:
- return $this->connection->{$method}($params[0], $params[1], $params[2]);
- case 4:
- return $this->connection->{$method}($params[0], $params[1], $params[2], $params[3]);
- case 5:
- return $this->connection->{$method}($params[0], $params[1], $params[2], $params[3], $params[4]);
- default:
- return call_user_func_array(array(&$this->connection, $method), $params);
- }
+ return call_user_func_array(array(&$this->connection, $method), $params);
}
/**

0 comments on commit 3922b8d

Please sign in to comment.