Delete some unused code.

This commit is contained in:
Brent Simmons committed 2026-06-13 14:20:57 -07:00
1 parent eb82dd3ce3
commit ebfc7cf4fe
2 files changed
-25

No files matched your search

@@ -648,18 +648,6 @@ final class ArticlesTable: DatabaseTable, Sendable {
self.statusesTable.removeStatuses(articleIDs, database)
}
}
/// Mark statuses beyond the 90-day window as read.
///
/// This is not intended for wide use: this is part of implementing
/// the April 2020 retention policy change for feed-based accounts.
func markOlderStatusesAsRead() {
queue.runInDatabase { database in
let sql = "update statuses set read = 1 where dateArrived<?;"
let parameters = [self.articleCutoffDate] as [Any]
database.executeUpdate(sql, withArgumentsIn: parameters)
}
}
}
// MARK: - Private
@@ -245,19 +245,6 @@ private final class StatusCache: Sendable {
private let state = OSAllocatedUnfairLock(initialState: State())
var cachedStatuses: Set<ArticleStatus> {
state.withLock { Set($0.dictionary.values) }
}
func add(_ statuses: Set<ArticleStatus>) {
// Replaces any cached statuses.
state.withLock { state in
for status in statuses {
state.dictionary[status.articleID] = status
}
}
}
func addStatusIfNotCached(_ status: ArticleStatus) {
addIfNotCached(Set([status]))
}