Skip to content

Commit 4da1624

Browse files
committed
refactor: remove unused serialPorts variable and instance of serialhub for cleaner code
1 parent 2bcc06d commit 4da1624

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

serial.go

-7
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,6 @@ type SpPortItem struct {
7171
ProductID string
7272
}
7373

74-
// serialPorts contains the ports attached to the machine
75-
var serialPorts SerialPortList
76-
77-
var sh = serialhub{
78-
ports: make(map[*serport]bool),
79-
}
80-
8174
// Register serial ports from the connections.
8275
func (sh *serialhub) Register(port *serport) {
8376
sh.mu.Lock()

0 commit comments

Comments
 (0)