diff options
author | xengineering <me@xengineering.eu> | 2023-07-04 12:43:47 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-07-04 12:43:47 +0200 |
commit | 8e84ca8a4d340956bd0aaead59d5c79dcaede6a5 (patch) | |
tree | 718f6aee67222706c2e886d427b29cec3f034bc5 | |
parent | 9f87ef34c589825d65824a8c9210fed5bf92f94d (diff) | |
download | limox-8e84ca8a4d340956bd0aaead59d5c79dcaede6a5.tar limox-8e84ca8a4d340956bd0aaead59d5c79dcaede6a5.tar.zst limox-8e84ca8a4d340956bd0aaead59d5c79dcaede6a5.zip |
Remove xmpp.presence type
This was empty and has no benefit.
-rw-r--r-- | xmpp/presence.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xmpp/presence.go b/xmpp/presence.go index e2b1841..00eaa47 100644 --- a/xmpp/presence.go +++ b/xmpp/presence.go @@ -5,15 +5,13 @@ import ( "log" ) -type presence struct{} - func (s *session) sendPresence() { start := xml.StartElement{ xml.Name{"", "presence"}, []xml.Attr{}, } - err := s.tx.EncodeElement(presence{}, start) + err := s.tx.EncodeElement(struct{}{}, start) if err != nil { log.Println("Could not encode presence!") return |