aboutsummaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'util.go')
-rw-r--r--util.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/util.go b/util.go
index 6193d4d..323f99d 100644
--- a/util.go
+++ b/util.go
@@ -11,9 +11,6 @@ import (
"golang.org/x/crypto/nacl/secretbox"
. "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector"
- "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector/irc"
- "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector/mattermost"
- "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector/xmpp"
)
const EASYBRIDGE_SYSTEM_PROTOCOL string = "✯◡✯"
@@ -101,18 +98,3 @@ func decryptAccountConfig(data string, key *[32]byte) (map[string]string, error)
err = json.Unmarshal(decoded, &config)
return config, err
}
-
-// ----
-
-func createConnector(protocol string) Connector {
- switch protocol {
- case "irc":
- return &irc.IRC{}
- case "xmpp":
- return &xmpp.XMPP{}
- case "mattermost":
- return &mattermost.Mattermost{}
- default:
- return nil
- }
-}