aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <=>2021-02-19 01:00:53 -0800
committerFChannel <=>2021-02-19 01:00:53 -0800
commit28e256f18f96d9afdcb903b3bc3daf93747c2195 (patch)
tree519a163e8bddc10690d774231d97017ce02a5003 /main.go
parent5cb76e8bf5b9c07d6c7980a403dc4faeea37c3b7 (diff)
cleaned up db functions
Diffstat (limited to 'main.go')
-rw-r--r--main.go52
1 files changed, 0 insertions, 52 deletions
diff --git a/main.go b/main.go
index fec34f0..58e8f3d 100644
--- a/main.go
+++ b/main.go
@@ -1301,58 +1301,6 @@ func GetActor(id string) Actor {
return respActor
}
-func GetActorCollectionCache(db *sql.DB, actor Actor) Collection {
- var collection Collection
-
- collection.OrderedItems = GetObjectFromCache(db, actor.Id).OrderedItems
-
- collection.Actor = &actor
-
- collection.TotalItems = GetObjectPostsTotalCache(db, actor)
- collection.TotalImgs = GetObjectImgsTotalCache(db, actor)
-
- return collection
-}
-
-func GetActorCollectionCacheCatalog(db *sql.DB, actor Actor) Collection {
- var collection Collection
-
- collection.OrderedItems = GetObjectFromCacheCatalog(db, actor.Id).OrderedItems
-
- collection.Actor = &actor
-
- collection.TotalItems = GetObjectPostsTotalCache(db, actor)
- collection.TotalImgs = GetObjectImgsTotalCache(db, actor)
-
- return collection
-}
-
-func GetActorCollectionDB(db *sql.DB, actor Actor) Collection {
- var collection Collection
-
- collection.OrderedItems = GetObjectFromDB(db, actor.Id).OrderedItems
-
- collection.Actor = &actor
-
- collection.TotalItems = GetObjectPostsTotalDB(db, actor)
- collection.TotalImgs = GetObjectImgsTotalDB(db, actor)
-
- return collection
-}
-
-func GetActorCollectionDBCatalog(db *sql.DB, actor Actor) Collection {
- var collection Collection
-
- collection.OrderedItems = GetObjectFromDBCatalog(db, actor.Id).OrderedItems
-
- collection.Actor = &actor
-
- collection.TotalItems = GetObjectPostsTotalDB(db, actor)
- collection.TotalImgs = GetObjectImgsTotalDB(db, actor)
-
- return collection
-}
-
func GetActorCollection(collection string) Collection {
var nCollection Collection