From 4d8353c0f0c12c6497e3220884644c93a07d3b39 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Thu, 28 Dec 2023 17:51:08 +0000 Subject: [PATCH] Update __init__.py --- ovos_utils/skills/__init__.py | 62 ----------------------------------- 1 file changed, 62 deletions(-) diff --git a/ovos_utils/skills/__init__.py b/ovos_utils/skills/__init__.py index 27d559b2..79adc724 100644 --- a/ovos_utils/skills/__init__.py +++ b/ovos_utils/skills/__init__.py @@ -36,65 +36,3 @@ def skills_loaded(bus=None): if reply: return reply.data['status'] return False - - -def blacklist_skill(skill, config=None): - config = config or read_mycroft_config() - skills_config = config.get("skills", {}) - blacklisted_skills = skills_config.get("blacklisted_skills", []) - if skill not in blacklisted_skills: - blacklisted_skills.append(skill) - conf = { - "skills": { - "blacklisted_skills": blacklisted_skills - } - } - update_mycroft_config(conf) - return True - return False - - -def whitelist_skill(skill, config=None): - config = config or read_mycroft_config() - skills_config = config.get("skills", {}) - blacklisted_skills = skills_config.get("blacklisted_skills", []) - if skill in blacklisted_skills: - blacklisted_skills.pop(skill) - conf = { - "skills": { - "blacklisted_skills": blacklisted_skills - } - } - update_mycroft_config(conf) - return True - return False - - -@deprecated("This method is deprecated. Skills are now loaded based on " - "`runtime_requirements`", "0.1.0") -def make_priority_skill(skill, config=None): - # config = config or read_mycroft_config() - # skills_config = config.get("skills", {}) - # priority_skills = skills_config.get("priority_skills", []) - # if skill not in priority_skills: - # priority_skills.append(skill) - # conf = { - # "skills": { - # "priority_skills": priority_skills - # } - # } - # update_mycroft_config(conf) - # return True - return False - - -@deprecated("This reference is deprecated, use " - "`ovos_utils.skills.locations.get_default_skill_dir", "0.1.0") -def get_skills_folder(config=None): - return get_default_skills_directory(config) - - -@deprecated("This reference is deprecated, use " - "`ovos_utils.skills.locations.get_installed_skill_ids", "0.1.0") -def get_installed_skills(config=None): - return get_installed_skill_ids(config)