Skip to content

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpevzner committed Dec 2, 2024
1 parent 591534a commit e76c669
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions usbtransport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e76c669

Please sign in to comment.