source/Core/SettingsHandler.php
protected function removeNotUsedSettings($moduleSettings, $moduleId)
    {
        $moduleConfigs = array_keys($this->getModuleConfigs($moduleId));
        $moduleSettings = $this->parseModuleSettings($moduleSettings);

        $configsToRemove = array_diff($moduleConfigs, $moduleSettings);
        if (!empty($configsToRemove)) {
            $this->removeModuleConfigs($moduleId, $configsToRemove);
        }
    }
protected function removeNotUsedSettings($moduleSettings, $moduleId)
    {
        $moduleConfigs = array_keys($this->getModuleConfigs($moduleId));
        $moduleSettings = $this->parseModuleSettings($moduleSettings);

        $configsToRemove = array_diff($moduleConfigs, $moduleSettings);
        if (!empty($configsToRemove)) {
            $this->removeModuleConfigs($moduleId, $configsToRemove);
        }
    }
protected function removeNotUsedSettings ( $ moduleSettings , $ moduleId ) { $ moduleConfigs = array_keys ( $ this -> getModuleConfigs ( $ moduleId ) ) ; $ moduleSettings = $ this -> parseModuleSettings ( $ moduleSettings ) ; $ configsToRemove = array_diff ( $ moduleConfigs , $ moduleSettings ) ; if ( ! empty ( $ configsToRemove ) ) { $ this -> removeModuleConfigs ( $ moduleId , $ configsToRemove ) ; } }
Removes configs which are removed from module metadata

@param array  $moduleSettings Module settings
@param string $moduleId       Module id
Removes configs which are removed from module metadata