mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 01:40:22 +00:00
Remove unneeded urlCache.
This commit is contained in:
1 parent
24a10f4874
commit
2d5829f934
1 file changed
+1
-16
@@ -271,23 +271,8 @@ private extension LocalAccountRefresher {
|
||||
return false
|
||||
}
|
||||
|
||||
static var urlCache = [String: URL]()
|
||||
|
||||
static func url(for feed: Feed) -> URL? {
|
||||
|
||||
assert(Thread.isMainThread)
|
||||
|
||||
let urlString = feed.url
|
||||
|
||||
if let url = urlCache[urlString] {
|
||||
return url
|
||||
}
|
||||
if let url = URL(string: urlString) {
|
||||
urlCache[urlString] = url
|
||||
return url
|
||||
}
|
||||
|
||||
return nil
|
||||
URL(string: feed.url)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user