Commit dfec9278 authored by Kirill Smelkov's avatar Kirill Smelkov

go/neo/neonet: Kill pktBuf.Dump

It is not used anywhere and would have to be reworked with upcoming
introduction of msgpack encoding. -> Simply remove that.
parent 47e3cdd9
...@@ -112,15 +112,3 @@ func (pkt *pktBuf) String() string { ...@@ -112,15 +112,3 @@ func (pkt *pktBuf) String() string {
return s return s
} }
// Dump dumps a packet in raw form.
func (pkt *pktBuf) Dump() string {
if len(pkt.data) < proto.PktHeaderLen {
return fmt.Sprintf("(! < pktHeaderLen) % x", pkt.data)
}
h := pkt.Header()
data := pkt.Payload()
return fmt.Sprintf(".%d (%d) #%d [%d]: % x",
packed.Ntoh32(h.ConnId), packed.Ntoh16(h.MsgCode), packed.Ntoh32(h.MsgLen), len(data), data)
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment