summaryrefslogtreecommitdiffstats
path: root/einterfaces
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-11-16 15:04:27 -0600
committerJonathan <jonfritz@gmail.com>2017-11-16 16:04:27 -0500
commiteb1a00ef5f93b19c2d49b26de057ee2c51c09e45 (patch)
treee63afa695283e15c5cd9ee2a437d74024dcc5c20 /einterfaces
parentef69d93abfb192bc7a2416f3cf2622d99fd27dd5 (diff)
downloadchat-eb1a00ef5f93b19c2d49b26de057ee2c51c09e45.tar.gz
chat-eb1a00ef5f93b19c2d49b26de057ee2c51c09e45.tar.bz2
chat-eb1a00ef5f93b19c2d49b26de057ee2c51c09e45.zip
Reorganize file util functionality (#7848)
* reorganize file util functionality * fix api test compilation * fix rebase issue
Diffstat (limited to 'einterfaces')
-rw-r--r--einterfaces/brand.go10
-rw-r--r--einterfaces/elasticsearch.go10
-rw-r--r--einterfaces/emoji.go10
3 files changed, 0 insertions, 30 deletions
diff --git a/einterfaces/brand.go b/einterfaces/brand.go
index ae187fdcd..fc584a91c 100644
--- a/einterfaces/brand.go
+++ b/einterfaces/brand.go
@@ -12,13 +12,3 @@ type BrandInterface interface {
SaveBrandImage(*multipart.FileHeader) *model.AppError
GetBrandImage() ([]byte, *model.AppError)
}
-
-var theBrandInterface BrandInterface
-
-func RegisterBrandInterface(newInterface BrandInterface) {
- theBrandInterface = newInterface
-}
-
-func GetBrandInterface() BrandInterface {
- return theBrandInterface
-}
diff --git a/einterfaces/elasticsearch.go b/einterfaces/elasticsearch.go
index b81605b4f..5582fd4e8 100644
--- a/einterfaces/elasticsearch.go
+++ b/einterfaces/elasticsearch.go
@@ -18,13 +18,3 @@ type ElasticsearchInterface interface {
PurgeIndexes() *model.AppError
DataRetentionDeleteIndexes(cutoff time.Time) *model.AppError
}
-
-var theElasticsearchInterface ElasticsearchInterface
-
-func RegisterElasticsearchInterface(newInterface ElasticsearchInterface) {
- theElasticsearchInterface = newInterface
-}
-
-func GetElasticsearchInterface() ElasticsearchInterface {
- return theElasticsearchInterface
-}
diff --git a/einterfaces/emoji.go b/einterfaces/emoji.go
index dc685e359..b8d61e748 100644
--- a/einterfaces/emoji.go
+++ b/einterfaces/emoji.go
@@ -10,13 +10,3 @@ import (
type EmojiInterface interface {
CanUserCreateEmoji(string, []*model.TeamMember) bool
}
-
-var theEmojiInterface EmojiInterface
-
-func RegisterEmojiInterface(newInterface EmojiInterface) {
- theEmojiInterface = newInterface
-}
-
-func GetEmojiInterface() EmojiInterface {
- return theEmojiInterface
-}