Skip to content

Commit d3b1886

Browse files
committed
remove unused function
1 parent 5c4680f commit d3b1886

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

seriallist.go

-11
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,3 @@ func findPortByName(portname string) (*serport, bool) {
8080
}
8181
return nil, false
8282
}
83-
84-
func findPortByNameRerun(portname string, network bool) (OsSerialPort, bool) {
85-
portnamel := strings.ToLower(portname)
86-
list, _ := GetList(network)
87-
for _, item := range list {
88-
if strings.ToLower(item.Name) == portnamel {
89-
return item, true
90-
}
91-
}
92-
return OsSerialPort{}, false
93-
}

0 commit comments

Comments
 (0)