From 9ce135f796e980937b7a8d415fbb8bbaf097b346 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 11 Sep 2025 22:41:30 +0200 Subject: [PATCH] Remove dead code. --- ircplom/client.py | 1 - ircplom/client_tui.py | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) 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) -- 2.30.2