Revert "Delete unused functions in TimelineDatasource.swift (#2037)"

This reverts commit e9a2d3e151.
This commit is contained in:
Thomas Ricouard 2024-05-08 10:50:22 +02:00
parent 8468e51c17
commit f04258ec04

View file

@ -32,6 +32,10 @@ actor TimelineDatasource {
}
}
func count() -> Int {
statuses.count
}
func reset() {
statuses = []
}
@ -48,6 +52,10 @@ actor TimelineDatasource {
self.statuses = statuses
}
func append(_ status: Status) {
statuses.append(status)
}
func append(contentOf: [Status]) {
statuses.append(contentsOf: contentOf)
}