From 1b832ea1871fa8bba6dc4fe5e01c607efefcff2f Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Thu, 28 Nov 2024 14:15:26 +0100 Subject: [PATCH] test: remove unused code [no changelog] --- tests/device_handler.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/device_handler.py b/tests/device_handler.py index f78686922c..b2c61acbfc 100644 --- a/tests/device_handler.py +++ b/tests/device_handler.py @@ -48,18 +48,6 @@ class BackgroundDeviceHandler: self.client.watch_layout(True) self.client.debug.input_wait_type = DebugWaitType.CURRENT_LAYOUT - def run(self, function: Callable[..., Any], *args: Any, **kwargs: Any) -> None: - """Runs some function that interacts with a device. - - Makes sure the UI is updated before returning. - """ - if self.task is not None: - raise RuntimeError("Wait for previous task first") - - # wait for the first UI change triggered by the task running in the background - with self.debuglink().wait_for_layout_change(): - self.task = self._pool.submit(function, self.client, *args, **kwargs) - def run_with_session( self, function: Callable[..., Any], *args: Any, **kwargs: Any ) -> None: