From bcac4bd2cff3b70283fb71a1c8fe793f5c555dad Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 29 May 2022 03:04:03 +0200 Subject: [PATCH] Remove dead code for plugin settings No idea what that was even intended for --- InvenTree/plugin/registry.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index 16c56f3ab4..7e13a86ed2 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -353,14 +353,9 @@ class PluginsRegistry: self.mixins_settings[slug] = plugin_setting def deactivate_plugin_settings(self): - - # collect all settings - plugin_settings = {} - - for _, plugin_setting in self.mixins_settings.items(): - plugin_settings.update(plugin_setting) - - # clear cache + """Deactivate all plugin settings.""" + logger.info('Deactivating plugin settings') + # clear settings cache self.mixins_settings = {} def activate_plugin_schedule(self, plugins):