From d44b09cf12c13af3e46a8e7c1cc2a4e72be7dfa9 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 14 Jul 2023 15:20:13 +0200 Subject: [PATCH] quality: cleanup unused code --- src/app.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/app.py b/src/app.py index a77cf51b8..e5b1a1f6a 100644 --- a/src/app.py +++ b/src/app.py @@ -1964,31 +1964,6 @@ ynh_app_config_run $1 return values -def _get_app_actions(app_id): - "Get app config panel stored in json or in toml" - actions_toml_path = os.path.join(APPS_SETTING_PATH, app_id, "actions.toml") - actions_json_path = os.path.join(APPS_SETTING_PATH, app_id, "actions.json") - - if os.path.exists(actions_toml_path): - toml_actions = toml.load(open(actions_toml_path, "r"), _dict=OrderedDict) - - # transform toml format into json format - actions = [] - - for key, value in toml_actions.items(): - action = dict(**value) - action["id"] = key - action["arguments"] = value.get("arguments", {}) - actions.append(action) - - return actions - - elif os.path.exists(actions_json_path): - return json.load(open(actions_json_path)) - - return None - - def _get_app_settings(app): """ Get settings of an installed app