summaryrefslogtreecommitdiff
path: root/xmpp/xmpp.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/xmpp.go')
-rw-r--r--xmpp/xmpp.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/xmpp/xmpp.go b/xmpp/xmpp.go
index fa61e0b..5be12c4 100644
--- a/xmpp/xmpp.go
+++ b/xmpp/xmpp.go
@@ -128,25 +128,3 @@ func sendStreamEnd(enc *xml.Encoder, dbg *xml.Encoder, end xml.EndElement) {
log.Println("Could not flush debug XML encoder!")
}
}
-
-// domainpart extracts the domain name from a JID / XMPP address. See
-// https://datatracker.ietf.org/doc/html/rfc7622#section-3.2 for details.
-func domainpart(jid string) string {
- list := []rune(jid)
-
- for i, v := range list {
- if v == '/' {
- list = list[:i]
- break
- }
- }
-
- for i, v := range list {
- if v == '@' {
- list = list[i+1:]
- break
- }
- }
-
- return string(list)
-}