Remove dead code

For now the component is not able to handle the discovery requests on its own.
This commit is contained in:
Mickael Remond 2019-06-10 15:06:41 +02:00
parent 08bb9965b8
commit 44568fcf2b
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3

View File

@ -213,31 +213,6 @@ func (handshakeDecoder) decode(p *xml.Decoder, se xml.StartElement) (Handshake,
return packet, err return packet, err
} }
// Service discovery
func (c *Component) discoResult(attrs PacketAttrs, info *DiscoInfo) {
iq := NewIQ("result", attrs.To, attrs.From, attrs.Id, "en")
var identity Identity
if info.Node == "" {
identity = Identity{
Name: c.Name,
Category: c.Category,
Type: c.Type,
}
}
payload := DiscoInfo{
Identity: identity,
Features: []Feature{
{Var: NSDiscoInfo},
{Var: NSDiscoItems},
},
}
iq.AddPayload(&payload)
_ = c.Send(iq)
}
/* /*
TODO: Add support for discovery management directly in component TODO: Add support for discovery management directly in component
TODO: Support multiple identities on disco info TODO: Support multiple identities on disco info