1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-07 17:32:48 +01:00

fix(rpc_server): removed unused get _get_becwidget_ancestor

This commit is contained in:
2026-02-23 13:35:51 +01:00
parent 5f46fa0994
commit 047ff2bef7

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:
"""