diff --git a/Modules/ArticlesDatabase/Sources/ArticlesDatabase/ArticlesTable.swift b/Modules/ArticlesDatabase/Sources/ArticlesDatabase/ArticlesTable.swift index f5a210a1a..b9f02ce4c 100644 --- a/Modules/ArticlesDatabase/Sources/ArticlesDatabase/ArticlesTable.swift +++ b/Modules/ArticlesDatabase/Sources/ArticlesDatabase/ArticlesTable.swift @@ -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 { - state.withLock { Set($0.dictionary.values) } - } - - func add(_ statuses: Set) { - // Replaces any cached statuses. - state.withLock { state in - for status in statuses { - state.dictionary[status.articleID] = status - } - } - } - func addStatusIfNotCached(_ status: ArticleStatus) { addIfNotCached(Set([status])) }