summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
Diffstat (limited to 'store')
-rw-r--r--store/layered_store_hints.go11
-rw-r--r--store/sqlstore/channel_store.go5
-rw-r--r--store/storetest/post_store.go2
3 files changed, 1 insertions, 17 deletions
diff --git a/store/layered_store_hints.go b/store/layered_store_hints.go
index 064f4f326..066f0a2fa 100644
--- a/store/layered_store_hints.go
+++ b/store/layered_store_hints.go
@@ -18,14 +18,3 @@ func hintsContains(hints []LayeredStoreHint, contains LayeredStoreHint) bool {
}
return false
}
-
-func hintsContainsAny(hints []LayeredStoreHint, contains ...LayeredStoreHint) bool {
- for _, hint := range hints {
- for _, hint2 := range contains {
- if hint == hint2 {
- return true
- }
- }
- }
- return false
-}
diff --git a/store/sqlstore/channel_store.go b/store/sqlstore/channel_store.go
index 2a22632a9..cf712d974 100644
--- a/store/sqlstore/channel_store.go
+++ b/store/sqlstore/channel_store.go
@@ -420,11 +420,6 @@ func (s SqlChannelStore) PermanentDeleteMembersByChannel(channelId string) store
})
}
-type channelWithMember struct {
- model.Channel
- model.ChannelMember
-}
-
func (s SqlChannelStore) GetChannels(teamId string, userId string) store.StoreChannel {
return store.Do(func(result *store.StoreResult) {
data := &model.ChannelList{}
diff --git a/store/storetest/post_store.go b/store/storetest/post_store.go
index b288cde34..afa8ae293 100644
--- a/store/storetest/post_store.go
+++ b/store/storetest/post_store.go
@@ -41,6 +41,7 @@ func TestPostStore(t *testing.T, ss store.Store) {
t.Run("GetPostsByIds", func(t *testing.T) { testPostStoreGetPostsByIds(t, ss) })
t.Run("GetPostsBatchForIndexing", func(t *testing.T) { testPostStoreGetPostsBatchForIndexing(t, ss) })
t.Run("PermanentDeleteBatch", func(t *testing.T) { testPostStorePermanentDeleteBatch(t, ss) })
+ t.Run("GetOldest", func(t *testing.T) { testPostStoreGetOldest(t, ss) })
}
func testPostStoreSave(t *testing.T, ss store.Store) {
@@ -1700,7 +1701,6 @@ func testPostStoreGetOldest(t *testing.T, ss store.Store) {
o1 = (<-ss.Post().Save(o1)).Data.(*model.Post)
o2 := &model.Post{}
- o2.Id = model.NewId()
o2.ChannelId = o1.ChannelId
o2.UserId = model.NewId()
o2.Message = "zz" + model.NewId() + "b"