[Changed] clear dead code

This commit is contained in:
MaxBUhe 2024-05-29 12:05:32 +02:00
bovenliggende 54d6918fcf
commit 09ccb6726d
3 gewijzigde bestanden met toevoegingen van 2 en 24 verwijderingen

Bestand weergeven

@ -17,8 +17,6 @@ class GA4AdminUserInterface_main extends \OxidEsales\Eshop\Application\Controlle
{
$return = parent::render();
$oConf = Registry::getConfig();
$this->addTplParam('d3ConfigObject', $oConf);
$this->addTplParam('d3ViewObject', $this);
$this->addTplParam('d3ManagerTypeArray', oxNew(ManagerTypes::class)->getManagerList());
@ -71,22 +69,6 @@ class GA4AdminUserInterface_main extends \OxidEsales\Eshop\Application\Controlle
}
}
/**
* @param array $postArray
* @param array $toExcludeArray
* @return array
*/
public function clearOffPostParams(array $postArray, array $toExcludeArray) :array
{
foreach ($toExcludeArray as $excludeThis){
if (in_array($excludeThis, array_keys($postArray))){
unset($postArray[$excludeThis]);
}
}
return $postArray;
}
/**
* @param string $configParamName
* @return mixed

Bestand weergeven

@ -8,6 +8,8 @@ use OxidEsales\Eshop\Core\ViewConfig;
class ManagerHandler
{
/**
* Gets current chosen Manager
*
* @return string
*/
public function getCurrManager() :string

Bestand weergeven

@ -210,12 +210,6 @@ class ViewConfig extends ViewConfig_parent
return $this->d3GetModuleConfigParam("_blEnableDebug");
}
public function isPromotionList($listId)
{
$oConfig = Registry::getConfig();
$aPromotionListIds = $oConfig->getConfigParam("") ?? ['bargainItems', 'newItems', 'topBox', 'alsoBought', 'accessories', 'cross'];
}
/**
* @return string
* @throws ContainerExceptionInterface