Skip to content

Commit 131ac90

Browse files
committed
remove last stray of unused commands
1 parent dcd46c7 commit 131ac90

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

Diff for: serial.go

-52
Original file line numberDiff line numberDiff line change
@@ -19,63 +19,12 @@ type writeRequest struct {
1919
id string
2020
}
2121

22-
type writeRequestJson struct {
23-
p *serport
24-
P string
25-
Data []writeRequestJsonData
26-
}
27-
28-
type writeRequestJsonRaw struct {
29-
p *serport
30-
P string
31-
Data []writeRequestJsonDataRaw
32-
}
33-
34-
type writeRequestJsonData struct {
35-
D string
36-
Id string
37-
Buf string
38-
}
39-
40-
type writeRequestJsonDataRaw struct {
41-
D []byte
42-
Id string
43-
Buf string
44-
}
45-
46-
type qReportJson struct {
47-
Cmd string
48-
QCnt int
49-
P string
50-
Data []qReportJsonData
51-
}
52-
53-
type qReportJsonData struct {
54-
D string
55-
Id string
56-
Buf string `json:"-"`
57-
Parts int `json:"-"`
58-
}
59-
60-
type qReport struct {
61-
Cmd string
62-
QCnt int
63-
Type []string `json:"-"`
64-
Ids []string
65-
D []string //`json:"-"`
66-
Port string
67-
}
68-
6922
type serialhub struct {
7023
// Opened serial ports.
7124
ports map[*serport]bool
7225

73-
//open chan *io.ReadWriteCloser
7426
//write chan *serport, chan []byte
7527
write chan writeRequest
76-
//read chan []byte
77-
78-
writeJson chan writeRequestJson
7928

8029
// Register requests from the connections.
8130
register chan *serport
@@ -112,7 +61,6 @@ var NetworkPorts SpPortList
11261
var sh = serialhub{
11362
//write: make(chan *serport, chan []byte),
11463
write: make(chan writeRequest),
115-
writeJson: make(chan writeRequestJson),
11664
register: make(chan *serport),
11765
unregister: make(chan *serport),
11866
ports: make(map[*serport]bool),

0 commit comments

Comments
 (0)