diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-04-26 12:43:43 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-09-25 09:43:37 +0200 |
| commit | 5610dca6c5e391ee62874c4d6cb25072d9c3c1d9 (patch) | |
| tree | 7ee890302fa6ef845527a5d6ae0e925f85c81b0e | |
| parent | 925ac224fe2ba253a90775268c651c5719c56de2 (diff) | |
Python: Get rid of token callback
| -rw-r--r-- | wrappers/python/eduvpn_common/main.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py index 6616192..b10e641 100644 --- a/wrappers/python/eduvpn_common/main.py +++ b/wrappers/python/eduvpn_common/main.py @@ -214,11 +214,6 @@ class EduVPN(object): if cleanup_err: forwardError(cleanup_err) - def token_calback(self, srv: Server, tok: Token): - if self.token_callback is None: - return - self.token_callback(srv, tok) - def set_profile(self, profile_id: str) -> None: """Set the profile of the current server @@ -297,19 +292,6 @@ class EduVPN(object): callback_object: Optional[Callable] = None -@UpdateToken -def token_callback(name: bytes, srv, tok): - name_decoded = name.decode() - if name_decoded not in eduvpn_objects: - return 0 - obj = eduvpn_objects[name_decoded] - srv_conv = get_transition_server(obj.lib, srv) - tok_conv = get_tokens(obj.lib, tok) - obj.token_callback( - srv_conv, tok_conv - ) - - @VPNStateChange def state_callback(old_state: int, new_state: int, data: str) -> int: """The internal callback that is passed to the Go library |
