From f606fa8a713156e08734455e8aebe595ccef4d18 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Fri, 16 Oct 2026 09:22:15 +0000 Subject: [PATCH] refactor(rpc): remove unused rpc_public and register_rpc_methods decorators --- bec_widgets/utils/rpc_decorator.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/bec_widgets/utils/rpc_decorator.py b/bec_widgets/utils/rpc_decorator.py index 2be98c55..faa1d569 100644 --- a/bec_widgets/utils/rpc_decorator.py +++ b/bec_widgets/utils/rpc_decorator.py @@ -1,20 +1,3 @@ -def rpc_public(func): - func.rpc_public = True # Mark the function for later processing by the class decorator - return func - - -def register_rpc_methods(cls): - """ - Class decorator to scan for rpc_public methods and add them to USER_ACCESS. - """ - if not hasattr(cls, "USER_ACCESS"): - cls.USER_ACCESS = set() - for name, method in cls.__dict__.items(): - if getattr(method, "rpc_public", False): - cls.USER_ACCESS.add(name) - return cls - - def rpc_timeout(timeout: float | None): """ Decorator to set a timeout for RPC methods.