From cb8ebd9dad589354b0090533854cda6b43f74b6c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 19 Sep 2025 12:43:45 +0200 Subject: [PATCH] Remove dead code (no longer needed since we into_endnode_updates). --- ircplom/client_tui.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index 9402538..46c4106 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -30,13 +30,6 @@ class _Update: self.path = path self.value = value self.force_log = force_log - for cls in [cls for cls in locals().values() - if isinstance(cls, type) - and issubclass(cls, _UpdatingNode) - and cls is not type(value) - and issubclass(cls, type(value))]: - self.value = cls() - self.value.copy_annotated_attrs(value) @property def key(self) -> str: @@ -54,12 +47,6 @@ class _UpdatingNode(AutoAttrMixin): def _make_attr(self, cls: Callable, key: str): return cls() - def copy_annotated_attrs(self, original) -> None: - 'From original copy those of its attributes annotated for self.' - for key in [k for k in self._deep_annotations() - if hasattr(original, k)]: - setattr(self, key, getattr(original, key)) - @classmethod def _scope(cls, key: str) -> LogScope: scopes: dict[str, LogScope] = {} -- 2.30.2