From 8e84ca8a4d340956bd0aaead59d5c79dcaede6a5 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 4 Jul 2023 12:43:47 +0200 Subject: Remove xmpp.presence type This was empty and has no benefit. --- xmpp/presence.go | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-70-g09d2