From 335d4561618077a90c5032db82b5292a601db8ca Mon Sep 17 00:00:00 2001 From: Christian Kuhn Date: Mon, 27 Aug 2018 14:01:21 +0200 Subject: [PATCH] [TASK] Clean up unused / dead code A series of unused and dead code places are fixed with the patch: * Switch + return + break -> the break is obsolete * A couple of 'too many arguments' when calling methods * Various assignments of variables that are never used Change-Id: I8472597f73a739bce053cf6de772c111ae7044d7 Resolves: #85993 Releases: master Reviewed-on: https://review.typo3.org/58047 Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Tested-by: TYPO3com Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters --- Classes/FrontendEditPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 921a72d..1fb3532 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -86,7 +86,7 @@ class FrontendEditPanel */ public function editPanel($content, array $conf, $currentRecord = '', array $dataArr = [], $table = '', array $allow = [], $newUID = 0, array $hiddenFields = []) { - $hiddenFieldString = $command = ''; + $hiddenFieldString = ''; // Special content is about to be shown, so the cache must be disabled. $this->frontendController->set_no_cache('Frontend edit panel is shown', true);