From 91406b20168c42e1d135d4484a7f170cd5639cb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 26 May 2025 17:34:18 +0200 Subject: [PATCH] remove unused method --- pkgs/clan-cli/clan_lib/ssh/remote.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pkgs/clan-cli/clan_lib/ssh/remote.py b/pkgs/clan-cli/clan_lib/ssh/remote.py index 3d208b57e..eb75039a2 100644 --- a/pkgs/clan-cli/clan_lib/ssh/remote.py +++ b/pkgs/clan-cli/clan_lib/ssh/remote.py @@ -48,25 +48,6 @@ class Remote: def target(self) -> str: return f"{self.user}@{self.address}" - @classmethod - def with_user(cls, host: "Remote", user: str) -> "Remote": - """ - Return a new Remote object with the specified user. - """ - return cls( - address=host.address, - user=user, - command_prefix=host.command_prefix, - port=host.port, - private_key=host.private_key, - password=host.password, - forward_agent=host.forward_agent, - host_key_check=host.host_key_check, - verbose_ssh=host.verbose_ssh, - ssh_options=host.ssh_options, - tor_socks=host.tor_socks, - ) - @classmethod def from_deployment_address( cls,