From be75246307b55d472949ac69390fcf0d66fa075e Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 7 Apr 2025 13:56:23 +0100 Subject: [PATCH] remove comments for repeat code --- internal/cache/timeline/status.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/internal/cache/timeline/status.go b/internal/cache/timeline/status.go index 5068b45d6..bcd354fd2 100644 --- a/internal/cache/timeline/status.go +++ b/internal/cache/timeline/status.go @@ -522,20 +522,9 @@ func (t *StatusTimeline) Load( func LoadStatusTimeline( ctx context.Context, page *paging.Page, - - // loadPage should load the timeline of given page for cache hydration. loadPage func(page *paging.Page) (statuses []*gtsmodel.Status, err error), - - // loadIDs should load status models with given IDs, this is used - // to load status models of already cached entries in the timeline. loadIDs func(ids []string) (statuses []*gtsmodel.Status, err error), - - // filter can be used to perform filtering of returned - // statuses BEFORE insert into cache. i.e. this will effect - // what actually gets stored in the timeline cache. filter func(each *gtsmodel.Status) (delete bool, err error), - - // prepareAPI should prepare internal status model to frontend API model. prepareAPI func(status *gtsmodel.Status) (apiStatus *apimodel.Status, err error), ) ( []*apimodel.Status,