1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-05 00:12:49 +01:00

fix(rpc_server): removed unused get _get_becwidget_ancestor

This commit is contained in:
2026-02-23 13:35:51 +01:00
committed by Jan Wyzula
parent d42c9fccae
commit 9371c0d62e

View File

@@ -336,20 +336,6 @@ class RPCServer:
"__rpc__": True,
}
@staticmethod
def _get_becwidget_ancestor(widget: QObject) -> BECConnector | None:
"""
Traverse up the parent chain to find the nearest BECConnector.
Returns None if none is found.
"""
parent = widget.parent()
while parent is not None:
if isinstance(parent, BECConnector):
return parent
parent = parent.parent()
return None
# Suppose clients register callbacks to receive updates
def add_registry_update_callback(self, cb: Callable) -> None:
"""