remove unused SetMax method on the mtuDiscoverer (#4543)

This commit is contained in:
Marten Seemann
2024-06-01 13:00:15 +08:00
committed by GitHub
parent 82a3847439
commit 375fc59084

View File

@@ -61,10 +61,6 @@ func (f *mtuFinder) done() bool {
return f.max-f.current <= maxMTUDiff+1 return f.max-f.current <= maxMTUDiff+1
} }
func (f *mtuFinder) SetMax(max protocol.ByteCount) {
f.max = max
}
func (f *mtuFinder) Start() { func (f *mtuFinder) Start() {
if f.max == protocol.InvalidByteCount { if f.max == protocol.InvalidByteCount {
panic("invalid") panic("invalid")