Remove obsolete refresh interval migration.

This commit is contained in:
Brent Simmons committed 2026-12-03 09:54:07 -08:00
1 parent e2b901fc28
commit daa6281b37
1 file changed
-9
-9
View File
@@ -250,9 +250,6 @@ extension AppDefaults {
static var refreshInterval: RefreshInterval {
get {
let rawValue = UserDefaults.standard.integer(forKey: Key.refreshInterval)
if rawValue == 2 { // Old every-10-minutes setting — now using 30 minutes as minimum.
return .every30Minutes
}
return RefreshInterval(rawValue: rawValue) ?? .every2Hours
}
set {
@@ -261,12 +258,6 @@ extension AppDefaults {
}
@MainActor static func registerDefaults() {
// Migrate every-10-minute refresh interval to 30 minutes.
let rawValue = UserDefaults.standard.integer(forKey: Key.refreshInterval)
if rawValue == 2 {
UserDefaults.standard.set(RefreshInterval.every30Minutes.rawValue, forKey: Key.refreshInterval)
}
migrateLegacyTimelineShowSeparators()
#if DEBUG