diff --git a/src/DI/Helpers.php b/src/DI/Helpers.php index 925302bc8..c65cfb6fc 100644 --- a/src/DI/Helpers.php +++ b/src/DI/Helpers.php @@ -82,25 +82,6 @@ public static function expand($var, array $params, $recursive = FALSE) - /** - * Expand counterpart. - * @param mixed - * @return mixed - */ - public static function escape($value) - { - if (is_array($value)) { - array_walk_recursive($value, function(&$val) { - $val = is_string($val) ? str_replace('%', '%%', $val) : $val; - }); - } elseif (is_string($value)) { - $value = str_replace('%', '%%', $value); - } - return $value; - } - - - /** * Generates list of arguments using autowiring. * @param Nette\Reflection\GlobalFunction|Nette\Reflection\Method diff --git a/tests/DI/Helpers.escape().phpt b/tests/DI/Helpers.escape().phpt deleted file mode 100644 index 4bb59e37d..000000000 --- a/tests/DI/Helpers.escape().phpt +++ /dev/null @@ -1,23 +0,0 @@ - 123, 'key2' => '%%'), - Helpers::escape(array('key1' => 123, 'key2' => '%')) -);