From 52ba3092632512ec2df371c3e0cb1f27f059af11 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 27 May 2019 15:42:48 +0200 Subject: [PATCH] removed `getHelpers` methoid remained unused for 7 years and is bugged, see https://github.com/zendframework/zend-db/issues/379 for details --- src/Adapter/Adapter.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/Adapter/Adapter.php b/src/Adapter/Adapter.php index e356ff9a58..2d21772674 100644 --- a/src/Adapter/Adapter.php +++ b/src/Adapter/Adapter.php @@ -234,26 +234,6 @@ public function createStatement($initialSql = null, $initialParameters = null) return $statement; } - public function getHelpers() - { - $functions = []; - $platform = $this->platform; - foreach (func_get_args() as $arg) { - switch ($arg) { - case self::FUNCTION_QUOTE_IDENTIFIER: - $functions[] = function ($value) use ($platform) { - return $platform->quoteIdentifier($value); - }; - break; - case self::FUNCTION_QUOTE_VALUE: - $functions[] = function ($value) use ($platform) { - return $platform->quoteValue($value); - }; - break; - } - } - } - /** * @param $name * @throws Exception\InvalidArgumentException