summaryrefslogtreecommitdiff
path: root/xmpp/streams.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-04 22:09:13 +0200
committerxengineering <me@xengineering.eu>2023-07-04 22:09:13 +0200
commit4c9c6c91f9dfca9fd17731d5b0e94aaaace4a137 (patch)
tree33a991b590e9cf0ef225f773b1544fbb26cf3501 /xmpp/streams.go
parenta23ba089a4e715e68b8c8d4179290692215784a2 (diff)
downloadlimox-4c9c6c91f9dfca9fd17731d5b0e94aaaace4a137.tar
limox-4c9c6c91f9dfca9fd17731d5b0e94aaaace4a137.tar.zst
limox-4c9c6c91f9dfca9fd17731d5b0e94aaaace4a137.zip
Remove unused code
Diffstat (limited to 'xmpp/streams.go')
-rw-r--r--xmpp/streams.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/xmpp/streams.go b/xmpp/streams.go
index 18a5e6a..ec16a02 100644
--- a/xmpp/streams.go
+++ b/xmpp/streams.go
@@ -11,8 +11,6 @@ type streamFeatures struct {
}
func handleStreamFeatures(s *session, f streamFeatures) {
- log.Print(f)
-
if len(f.SaslMechanisms) > 0 {
for _, v := range f.SaslMechanisms {
if v == "PLAIN" {
@@ -64,27 +62,3 @@ func closeStream(e *xml.Encoder) {
log.Println("Could not flush after stream end!")
}
}
-
-func iqHandler(s *session, e []xml.Token) {
- isResult := false
- idMatches := false
-
- result := xml.Attr{xml.Name{"", "type"}, "result"}
- id := xml.Attr{xml.Name{"", "id"}, s.resourceReq}
-
- switch start := e[0].(type) {
- case xml.StartElement:
- for _, v := range start.Attr {
- if v == result {
- isResult = true
- }
- if v == id {
- idMatches = true
- }
- }
-
- if isResult && idMatches {
- s.sendPresence()
- }
- }
-}