summaryrefslogtreecommitdiffstats
path: root/store/sql_channel_store.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-07-15 11:20:39 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-07-15 11:20:39 -0400
commit942ae4c5278e0a3064ef08937063ec66a6a8e990 (patch)
tree595514b6619988c72250ac2bf924cc103887f948 /store/sql_channel_store.go
parentb339b5c982a336abcc0a1f1bc9ba68e447472228 (diff)
downloadchat-942ae4c5278e0a3064ef08937063ec66a6a8e990.tar.gz
chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.tar.bz2
chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.zip
Cleaning up old export code (#3601)
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r--store/sql_channel_store.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go
index 2b356d0de..463bc0678 100644
--- a/store/sql_channel_store.go
+++ b/store/sql_channel_store.go
@@ -982,28 +982,6 @@ func (s SqlChannelStore) IncrementMentionCount(channelId string, userId string)
return storeChannel
}
-func (s SqlChannelStore) GetForExport(teamId string) StoreChannel {
- storeChannel := make(StoreChannel)
-
- go func() {
- result := StoreResult{}
-
- var data []*model.Channel
- _, err := s.GetReplica().Select(&data, "SELECT * FROM Channels WHERE TeamId = :TeamId AND DeleteAt = 0 AND Type = 'O'", map[string]interface{}{"TeamId": teamId})
-
- if err != nil {
- result.Err = model.NewLocAppError("SqlChannelStore.GetAllChannels", "store.sql_channel.get_for_export.app_error", nil, "teamId="+teamId+", err="+err.Error())
- } else {
- result.Data = data
- }
-
- storeChannel <- result
- close(storeChannel)
- }()
-
- return storeChannel
-}
-
func (s SqlChannelStore) GetAll(teamId string) StoreChannel {
storeChannel := make(StoreChannel)