From aefbb541d0d5bdd9919fef44fbf1a1fbfeaeb58b Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Wed, 20 Jan 2016 13:36:16 -0600 Subject: Revert " PLT-7 adding loc for db calls" --- store/sql_team_store.go | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'store/sql_team_store.go') diff --git a/store/sql_team_store.go b/store/sql_team_store.go index 6c2eb6a21..9578549ca 100644 --- a/store/sql_team_store.go +++ b/store/sql_team_store.go @@ -6,7 +6,6 @@ package store import ( "github.com/mattermost/platform/model" "github.com/mattermost/platform/utils" - goi18n "github.com/nicksnyder/go-i18n/i18n" ) type SqlTeamStore struct { @@ -38,7 +37,7 @@ func (s SqlTeamStore) CreateIndexesIfNotExists() { s.CreateIndexIfNotExists("idx_teams_invite_id", "Teams", "InviteId") } -func (s SqlTeamStore) Save(T goi18n.TranslateFunc, team *model.Team) StoreChannel { +func (s SqlTeamStore) Save(team *model.Team) StoreChannel { storeChannel := make(StoreChannel) go func() { @@ -77,7 +76,7 @@ func (s SqlTeamStore) Save(T goi18n.TranslateFunc, team *model.Team) StoreChanne return storeChannel } -func (s SqlTeamStore) Update(T goi18n.TranslateFunc, team *model.Team) StoreChannel { +func (s SqlTeamStore) Update(team *model.Team) StoreChannel { storeChannel := make(StoreChannel) @@ -118,7 +117,7 @@ func (s SqlTeamStore) Update(T goi18n.TranslateFunc, team *model.Team) StoreChan return storeChannel } -func (s SqlTeamStore) UpdateDisplayName(T goi18n.TranslateFunc, name string, teamId string) StoreChannel { +func (s SqlTeamStore) UpdateDisplayName(name string, teamId string) StoreChannel { storeChannel := make(StoreChannel) @@ -138,7 +137,7 @@ func (s SqlTeamStore) UpdateDisplayName(T goi18n.TranslateFunc, name string, tea return storeChannel } -func (s SqlTeamStore) Get(T goi18n.TranslateFunc, id string) StoreChannel { +func (s SqlTeamStore) Get(id string) StoreChannel { storeChannel := make(StoreChannel) go func() { @@ -164,7 +163,7 @@ func (s SqlTeamStore) Get(T goi18n.TranslateFunc, id string) StoreChannel { return storeChannel } -func (s SqlTeamStore) GetByInviteId(T goi18n.TranslateFunc, inviteId string) StoreChannel { +func (s SqlTeamStore) GetByInviteId(inviteId string) StoreChannel { storeChannel := make(StoreChannel) go func() { @@ -193,7 +192,7 @@ func (s SqlTeamStore) GetByInviteId(T goi18n.TranslateFunc, inviteId string) Sto return storeChannel } -func (s SqlTeamStore) GetByName(T goi18n.TranslateFunc, name string) StoreChannel { +func (s SqlTeamStore) GetByName(name string) StoreChannel { storeChannel := make(StoreChannel) go func() { @@ -218,7 +217,7 @@ func (s SqlTeamStore) GetByName(T goi18n.TranslateFunc, name string) StoreChanne return storeChannel } -func (s SqlTeamStore) GetTeamsForEmail(T goi18n.TranslateFunc, email string) StoreChannel { +func (s SqlTeamStore) GetTeamsForEmail(email string) StoreChannel { storeChannel := make(StoreChannel) go func() { @@ -244,7 +243,7 @@ func (s SqlTeamStore) GetTeamsForEmail(T goi18n.TranslateFunc, email string) Sto return storeChannel } -func (s SqlTeamStore) GetAll(T goi18n.TranslateFunc) StoreChannel { +func (s SqlTeamStore) GetAll() StoreChannel { storeChannel := make(StoreChannel) go func() { @@ -270,7 +269,7 @@ func (s SqlTeamStore) GetAll(T goi18n.TranslateFunc) StoreChannel { return storeChannel } -func (s SqlTeamStore) GetAllTeamListing(T goi18n.TranslateFunc) StoreChannel { +func (s SqlTeamStore) GetAllTeamListing() StoreChannel { storeChannel := make(StoreChannel) go func() { @@ -302,7 +301,7 @@ func (s SqlTeamStore) GetAllTeamListing(T goi18n.TranslateFunc) StoreChannel { return storeChannel } -func (s SqlTeamStore) PermanentDelete(T goi18n.TranslateFunc, teamId string) StoreChannel { +func (s SqlTeamStore) PermanentDelete(teamId string) StoreChannel { storeChannel := make(StoreChannel) go func() { -- cgit v1.2.3-1-g7c22