Remove unused (apparently redundant?) BottomTimestamp function from the Feed object
This commit is contained in:
parent
7102530661
commit
5c79decd7b
@ -384,17 +384,6 @@ type Feed struct {
|
|||||||
CursorBottom Cursor
|
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 {
|
func NewFeed() Feed {
|
||||||
return Feed{
|
return Feed{
|
||||||
Items: []FeedItem{},
|
Items: []FeedItem{},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user