diff options
author | Wim <wim@42.be> | 2018-03-05 00:30:46 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-03-05 00:30:46 +0100 |
commit | 98027446c895de648c65af33f2010c73c752a8da (patch) | |
tree | 98f42e35f2700f1e65015ced1df949fd3125bd77 /gateway/gateway.go | |
parent | f2f1d874e1b4f997c111de87121eec98eef66381 (diff) | |
download | matterbridge-msglm-98027446c895de648c65af33f2010c73c752a8da.tar.gz matterbridge-msglm-98027446c895de648c65af33f2010c73c752a8da.tar.bz2 matterbridge-msglm-98027446c895de648c65af33f2010c73c752a8da.zip |
Fix tests and make megacheck happy
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r-- | gateway/gateway.go | 9 |
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.") } |