From: John Mulligan Date: Mon, 9 Mar 2026 19:00:55 +0000 (-0400) Subject: mgr/cephadm: remove unused _calc_daemon_deps X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e0d441a36c066944ce009537127dd185a6d893a0;p=ceph.git mgr/cephadm: remove unused _calc_daemon_deps Former uses of this function always did the same actions that this function took (redundantly) so it provided little value, and was rarely used. Signed-off-by: John Mulligan --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index c815bbb12879..4a236029380b 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -3154,15 +3154,6 @@ Then run the following: previews_for_specs.update({host: osd_reports}) return previews_for_specs - def _calc_daemon_deps(self, - spec: Optional[ServiceSpec], - daemon_type: str, - daemon_id: str) -> List[str]: - svc_type = daemon_type_to_service(daemon_type) - svc_cls = service_registry.get_service(svc_type) - deps = svc_cls.get_dependencies(self, spec, daemon_type) if svc_cls else [] - return sorted(deps) - @forall_hosts def _remove_daemons(self, name: str, host: str) -> str: return CephadmServe(self)._remove_daemon(name, host)