Remove unused function in shed common_util - get_non_shed_tool_panel_configs.

This commit is contained in:
John Chilton
2022-09-13 17:31:33 -04:00
parent 7caef14a23
commit 6d1e86ea48
2 changed files with 1 additions and 33 deletions
+1 -31
View File
@@ -1,4 +1,3 @@
import errno
import json
import logging
import os
@@ -7,10 +6,7 @@ from urllib.parse import urljoin
from routes import url_for
from galaxy import util
from galaxy.util.tool_shed import (
encoding_util,
xml_util,
)
from galaxy.util.tool_shed import encoding_util
log = logging.getLogger(__name__)
@@ -69,31 +65,6 @@ def generate_clone_url_from_repo_info_tup(app, repo_info_tup):
return util.build_url(tool_shed_url, pathspec=["repos", owner, name])
def get_non_shed_tool_panel_configs(app):
"""Get the non-shed related tool panel configs - there can be more than one, and the default is tool_conf.xml."""
config_filenames = []
for config_filename in app.config.tool_configs:
# Any config file that includes a tool_path attribute in the root tag set like the following is shed-related.
# <toolbox tool_path="database/shed_tools">
try:
tree, error_message = xml_util.parse_xml(config_filename)
except OSError as exc:
if (
config_filename == app.config.shed_tool_conf
and not app.config.shed_tool_conf_set
and exc.errno == errno.ENOENT
):
continue
raise
if tree is None:
continue
root = tree.getroot()
tool_path = root.get("tool_path", None)
if tool_path is None:
config_filenames.append(config_filename)
return config_filenames
def get_repository_dependencies(app, tool_shed_url, repository_name, repository_owner, changeset_revision):
repository_dependencies_dict = {}
tool_shed_accessible = True
@@ -341,7 +312,6 @@ __all__ = (
"generate_clone_url_for_installed_repository",
"generate_clone_url_for_repository_in_tool_shed",
"generate_clone_url_from_repo_info_tup",
"get_non_shed_tool_panel_configs",
"get_repository_dependencies",
"get_protocol_from_tool_shed_url",
"get_tool_dependencies",
-2
View File
@@ -4,7 +4,6 @@ from galaxy.util.tool_shed.common_util import (
generate_clone_url_for_installed_repository,
generate_clone_url_for_repository_in_tool_shed,
generate_clone_url_from_repo_info_tup,
get_non_shed_tool_panel_configs,
get_protocol_from_tool_shed_url,
get_repository_dependencies,
get_tool_dependencies,
@@ -27,7 +26,6 @@ __all__ = (
"generate_clone_url_for_installed_repository",
"generate_clone_url_for_repository_in_tool_shed",
"generate_clone_url_from_repo_info_tup",
"get_non_shed_tool_panel_configs",
"get_repository_dependencies",
"get_protocol_from_tool_shed_url",
"get_tool_dependencies",