소스 검색

Remove useless method.

Daniele Alessandri 8 년 전
부모
커밋
028992cf1b
1개의 변경된 파일1개의 추가작업 그리고 13개의 파일을 삭제
  1. 1 13
      src/Connection/Parameters.php

+ 1 - 13
src/Connection/Parameters.php

@@ -33,7 +33,7 @@ class Parameters implements ParametersInterface
      */
     public function __construct(array $parameters = array())
     {
-        $this->parameters = $this->filter($parameters) + $this->getDefaults();
+        $this->parameters = $parameters + $this->getDefaults();
     }
 
     /**
@@ -136,18 +136,6 @@ class Parameters implements ParametersInterface
         return $this->parameters;
     }
 
-    /**
-     * Validates and converts each value of the connection parameters array.
-     *
-     * @param array $parameters Connection parameters.
-     *
-     * @return array
-     */
-    protected function filter(array $parameters)
-    {
-        return $parameters ?: array();
-    }
-
     /**
      * {@inheritdoc}
      */