From 5c79decd7be49fb90ebc05a7628e11b83fb60e08 Mon Sep 17 00:00:00 2001 From: Alessio Date: Sun, 22 Dec 2024 08:05:23 -0800 Subject: [PATCH] Remove unused (apparently redundant?) BottomTimestamp function from the Feed object --- pkg/persistence/compound_queries.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkg/persistence/compound_queries.go b/pkg/persistence/compound_queries.go index 974e265..fb1305e 100644 --- a/pkg/persistence/compound_queries.go +++ b/pkg/persistence/compound_queries.go @@ -384,17 +384,6 @@ type Feed struct { CursorBottom Cursor } -func (f Feed) BottomTimestamp() Timestamp { - if len(f.Items) == 0 { - return TimestampFromUnix(0) - } - last := f.Items[len(f.Items)-1] - if last.RetweetID != 0 { - return f.Retweets[last.RetweetID].RetweetedAt - } - return f.Tweets[last.TweetID].PostedAt -} - func NewFeed() Feed { return Feed{ Items: []FeedItem{},