Remove unused variables from peer conn (#2074)

Remove unused variables from peer conn
This commit is contained in:
Zoltan Papp
2024-06-04 17:04:50 +02:00
committed by GitHub
parent 4da29451d0
commit 983d7bafbe
4 changed files with 49 additions and 120 deletions

View File

@ -25,11 +25,6 @@ const (
DirectCheck uint32 = 1
)
// FeaturesSupport register protocol supported features
type FeaturesSupport struct {
DirectCheck bool
}
type Client interface {
io.Closer
StreamConnected() bool
@ -79,15 +74,3 @@ type Credential struct {
UFrag string
Pwd string
}
// ParseFeaturesSupported parses a slice of supported features into FeaturesSupport
func ParseFeaturesSupported(featuresMessage []uint32) FeaturesSupport {
var protoSupport FeaturesSupport
for _, feature := range featuresMessage {
if feature == DirectCheck {
protoSupport.DirectCheck = true
return protoSupport
}
}
return protoSupport
}