refactor: удаление метода find_target_by_pretty_name из класса Outbound

This commit is contained in:
2026-07-04 03:24:32 +03:00
parent d2e4537d15
commit 99e95d0624
-10
View File
@@ -144,16 +144,6 @@ class Outbound(ABC):
username, target = email.rsplit("-", 1)
return username, target
@staticmethod
def find_target_by_pretty_name(
targets: dict[str, dict[str, str]], pretty_name: str
) -> str | None:
search_name = pretty_name.strip()
for target, target_data in targets.items():
if target_data.get("pretty_name", "").strip() == search_name:
return target
return None
@abstractmethod
def __hash__(self) -> int: ...