diff options
author | xengineering <me@xengineering.eu> | 2023-06-26 18:37:16 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-06-27 15:04:33 +0200 |
commit | 8715603ce1a713d1c8841382bb965cb55948fedd (patch) | |
tree | c3af42979a443168d85dd194b063308417ad0f42 /xmpp/stream.go | |
parent | a8a6c31d862ec1d491fc76ed21c46d7e0b35b7f2 (diff) | |
download | limox-8715603ce1a713d1c8841382bb965cb55948fedd.tar limox-8715603ce1a713d1c8841382bb965cb55948fedd.tar.zst limox-8715603ce1a713d1c8841382bb965cb55948fedd.zip |
xmpp: Remove unused code
This is part of the refactoring. Details of the old implementation
should be looked up by older commits.
Diffstat (limited to 'xmpp/stream.go')
-rw-r--r-- | xmpp/stream.go | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/xmpp/stream.go b/xmpp/stream.go deleted file mode 100644 index d0680aa..0000000 --- a/xmpp/stream.go +++ /dev/null @@ -1,42 +0,0 @@ -package xmpp - -import ( - "encoding/xml" - "log" -) - -type stream struct { - session *session - end xml.EndElement -} - -func (s *stream) terminate() { - s.session.ed.encodeToken(s.end) -} - -func sendStreamStart(enc *encoder, jid string) xml.EndElement { - start := xml.StartElement{ - xml.Name{"jabber:client", "stream:stream"}, - []xml.Attr{ - xml.Attr{xml.Name{"", "from"}, jid}, - xml.Attr{xml.Name{"", "to"}, domainpart(jid)}, - xml.Attr{xml.Name{"", "version"}, "1.0"}, - xml.Attr{xml.Name{"", "xml:lang"}, "en"}, - xml.Attr{xml.Name{"", "xmlns:stream"}, "http://etherx.jabber.org/streams"}, - }, - } - - err := enc.encodeNow(start) - if err != nil { - log.Println("Could not encode stream start!") - } - - return start.End() -} - -func sendStreamEnd(enc *encoder, end xml.EndElement) { - err := enc.encodeNow(end) - if err != nil { - log.Println("Could not encode stream end!") - } -} |