aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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