Skip writing to disk when feed setting changes, since we’re writing OPML now and storing feed settings in ODB.

This commit is contained in:
Brent Simmons 2018-09-15 12:06:19 -07:00
parent abd8fb2236
commit d0df791b93
1 changed files with 0 additions and 8 deletions

View File

@ -135,7 +135,6 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(batchUpdateDidPerform(_:)), name: .BatchUpdateDidPerform, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(feedSettingDidChange(_:)), name: .FeedSettingDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(displayNameDidChange(_:)), name: .DisplayNameDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(childrenDidChange(_:)), name: .ChildrenDidChange, object: nil)
@ -492,13 +491,6 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
updateUnreadCount()
}
@objc func feedSettingDidChange(_ note: Notification) {
if let feed = note.object as? Feed, feed.account === self {
dirty = true
}
}
@objc func childrenDidChange(_ note: Notification) {
guard let object = note.object else {