From e76c669ca71019c80ee2af6cffd563fb0e42d919 Mon Sep 17 00:00:00 2001 From: Alexander Pevzner Date: Mon, 2 Dec 2024 14:19:14 +0300 Subject: [PATCH] Removed unused function --- usbtransport.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/usbtransport.go b/usbtransport.go index 7296305..e87af6e 100644 --- a/usbtransport.go +++ b/usbtransport.go @@ -697,17 +697,6 @@ ERROR: return nil, err } -// Compute Recv/Send timeout -func (conn *usbConn) timeout() (tm time.Duration, expored bool) { - deadline := conn.transport.deadline - if deadline.IsZero() { - return - } - - tm = time.Until(deadline) - return tm, tm <= 0 -} - // Read from USB func (conn *usbConn) Read(b []byte) (int, error) { conn.transport.connstate.beginRead(conn)