From 744c30833739b70893f72e9352eb34825cd83ebd Mon Sep 17 00:00:00 2001 From: Bill Schaller Date: Fri, 8 Jan 2016 13:58:02 -0500 Subject: [PATCH] Remove dead code SQLWalker::walkCaseExpression --- lib/Doctrine/ORM/Query/SqlWalker.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/lib/Doctrine/ORM/Query/SqlWalker.php b/lib/Doctrine/ORM/Query/SqlWalker.php index 92cb3d75760..45a6293f113 100644 --- a/lib/Doctrine/ORM/Query/SqlWalker.php +++ b/lib/Doctrine/ORM/Query/SqlWalker.php @@ -1169,33 +1169,6 @@ public function walkJoin($join) return $sql; } - /** - * Walks down a CaseExpression AST node and generates the corresponding SQL. - * - * @param AST\CoalesceExpression|AST\NullIfExpression|AST\GeneralCaseExpression|AST\SimpleCaseExpression $expression - * - * @return string The SQL. - */ - public function walkCaseExpression($expression) - { - switch (true) { - case ($expression instanceof AST\CoalesceExpression): - return $this->walkCoalesceExpression($expression); - - case ($expression instanceof AST\NullIfExpression): - return $this->walkNullIfExpression($expression); - - case ($expression instanceof AST\GeneralCaseExpression): - return $this->walkGeneralCaseExpression($expression); - - case ($expression instanceof AST\SimpleCaseExpression): - return $this->walkSimpleCaseExpression($expression); - - default: - return ''; - } - } - /** * Walks down a CoalesceExpression AST node and generates the corresponding SQL. *