From c0760a8617c8cac5d0921924fb8e8bd38d5e3c1b Mon Sep 17 00:00:00 2001 From: jvfe Date: Fri, 29 Nov 2024 15:40:37 -0300 Subject: [PATCH] refactor: Remove unused sections and logs --- nf_core/components/update.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nf_core/components/update.py b/nf_core/components/update.py index 77b5710b2..b3c6dfc98 100644 --- a/nf_core/components/update.py +++ b/nf_core/components/update.py @@ -42,7 +42,6 @@ def __init__( limit_output=False, ): super().__init__(component_type, pipeline_dir, remote_url, branch, no_pull) - self.original_remote = remote_url self.current_remote = remote_url self.branch = branch self.force = force @@ -103,11 +102,6 @@ def update(self, component=None, silent=False, updated=None, check_diff_exist=Tr self.modules_repo = ModulesRepo(remote_url, branch) component = component["name"] - # if self.original_remote != self.modules_repo.remote_url and self.sha is None: - # self.current_sha = None - # else: - # self.current_sha = self.sha - self.component = component if updated is None: updated = [] @@ -964,10 +958,6 @@ def manage_changes_in_linked_components(self, component, modules_to_update, subw subworkflow_directory = Path(self.directory, self.component_type, org_path, component) included_modules, included_subworkflows = get_components_to_install(subworkflow_directory) # If a module/subworkflow has been removed from the subworkflow - log.info(included_modules) - log.info(modules_to_update) - log.info(included_subworkflows) - log.info(subworkflows_to_update) for module in modules_to_update: module = module["name"] included_modules_names = [m["name"] for m in included_modules]