summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r--gateway/gateway.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index a637dcf7..694fa95b 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -23,7 +23,6 @@ import (
"github.com/hashicorp/golang-lru"
"github.com/peterhellberg/emojilib"
"net/http"
- "reflect"
"regexp"
"strings"
"time"
@@ -450,14 +449,6 @@ func getChannelID(msg config.Message) string {
return msg.Channel + msg.Account
}
-//getField returns the Protocol configuration for a specific protocol (field)
-func getField(cfg *config.Config, field string) map[string]config.Protocol {
- r := reflect.ValueOf(cfg)
- f := reflect.Indirect(r).FieldByName(field)
- i := f.Interface()
- return i.(map[string]config.Protocol)
-}
-
func isApi(account string) bool {
return strings.HasPrefix(account, "api.")
}