Don't store account.unreadCount in Settings.odb. Don’t rewrite AccountData.plist when feed.contentHash changes.

This commit is contained in:
Brent Simmons 2018-09-14 13:12:55 -07:00
parent aa94bc4c91
commit b8546d8e8b
3 changed files with 0 additions and 6 deletions

View File

@ -78,7 +78,6 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
didSet {
if unreadCount != oldValue {
postUnreadCountDidChangeNotification()
settingsTable.set(unreadCount, name: SettingsKey.unreadCount)
}
}
}

View File

@ -116,7 +116,6 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
self.faviconURL = dictionary[Key.faviconURL] as? String
self.name = dictionary[Key.name] as? String
self.editedName = dictionary[Key.editedName] as? String
// self.contentHash = dictionary[Key.contentHash] as? String
if let conditionalGetInfoDictionary = dictionary[Key.conditionalGetInfo] as? [String: String] {
self.conditionalGetInfo = HTTPConditionalGetInfo(dictionary: conditionalGetInfoDictionary)
@ -160,9 +159,6 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
if let authorsArray = authors?.diskArray() {
d[Key.authors] = authorsArray
}
// if let contentHash = contentHash {
// d[Key.contentHash] = contentHash
// }
if let conditionalGetInfo = conditionalGetInfo {
d[Key.conditionalGetInfo] = conditionalGetInfo.dictionary
}

View File

@ -80,7 +80,6 @@ extension LocalAccountRefresher: DownloadSessionDelegate {
}
feed.contentHash = dataHash
feed.account?.dirty = true
}
}
}