remove unused method from the ackhandler.Packet

This commit is contained in:
Marten Seemann
2018-03-30 19:17:07 +07:00
parent 6f12844094
commit 538cd2c40b
2 changed files with 0 additions and 66 deletions

View File

@@ -25,18 +25,3 @@ type Packet struct {
isRetransmission bool // we need a separate bool here because 0 is a valid packet number
retransmissionOf protocol.PacketNumber
}
// GetFramesForRetransmission gets all the frames for retransmission
func (p *Packet) GetFramesForRetransmission() []wire.Frame {
var fs []wire.Frame
for _, frame := range p.Frames {
switch frame.(type) {
case *wire.AckFrame:
continue
case *wire.StopWaitingFrame:
continue
}
fs = append(fs, frame)
}
return fs
}