remove unused method

This commit is contained in:
Jörg Thalheim
2025-05-26 17:34:18 +02:00
parent 367f32cf90
commit 37840dd203

View File

@@ -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,