From: Christian Heller Date: Thu, 11 Sep 2025 20:41:30 +0000 (+0200) Subject: Remove dead code. X-Git-Url: https://plomlompom.com/repos/reset_cookie?a=commitdiff_plain;h=9ce135f796e980937b7a8d415fbb8bbaf097b346;p=ircplom Remove dead code. --- diff --git a/ircplom/client.py b/ircplom/client.py index d125aa7..a2c78b2 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -219,7 +219,6 @@ class IntoEndnodeUpdatesMixin(AutoAttrMixin): class _UpdatingMixin(IntoEndnodeUpdatesMixin): - _on_update: Callable def __init__(self, on_update: Callable, **kwargs) -> None: super().__init__(**kwargs) diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index fa6b5a4..b07a532 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -87,11 +87,7 @@ class _UpdatingNode(AutoAttrMixin): setattr(self, key, value) def _unset(self, key: str) -> None: - attr = getattr(self, key) - if isinstance(attr, tuple): - setattr(self, key, tuple()) - else: - attr.clear() + getattr(self, key).clear() def _is_set(self, key: str) -> bool: return hasattr(self, key) @@ -229,8 +225,6 @@ class _UpdatingChannel(_UpdatingNode, Channel): f'RAW:{self.topic.who} set topic: {self.topic.what}') return None assert update.key == 'user_ids' - if update.value is None: - return None assert isinstance(update.value, set) d = {'NUHS:joining': tuple(id_ for id_ in update.value if id_ not in self.user_ids)