From a4acddd769203fc8cee64767c83c427045ad38f3 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Thu, 10 Oct 2024 00:30:10 +0200 Subject: [PATCH] remove obsolete tx_get method --- app/src/async_ifc.py | 5 ----- app/src/async_stream.py | 4 ---- 2 files changed, 9 deletions(-) diff --git a/app/src/async_ifc.py b/app/src/async_ifc.py index 4e1536e..80af383 100644 --- a/app/src/async_ifc.py +++ b/app/src/async_ifc.py @@ -23,11 +23,6 @@ class AsyncIfc(ABC): ''' send transmit queue and clears it''' pass # pragma: no cover - @abstractmethod - def tx_get(self, size: int = None) -> bytearray: - '''removes size numbers of bytes and return them''' - pass # pragma: no cover - @abstractmethod def tx_peek(self, size: int = None) -> bytearray: '''returns size numbers of byte without removing them''' diff --git a/app/src/async_stream.py b/app/src/async_stream.py index 559e48a..bf8e61e 100644 --- a/app/src/async_stream.py +++ b/app/src/async_stream.py @@ -56,10 +56,6 @@ class AsyncIfcImpl(AsyncIfc): ''' send transmit queue and clears it''' self.tx_fifo() - def tx_get(self, size: int = None) -> bytearray: - '''removes size numbers of bytes and return them''' - return self.tx_fifo.get(size) - def tx_peek(self, size: int = None) -> bytearray: '''returns size numbers of byte without removing them''' return self.tx_fifo.peek(size)