From ce45486ed55f382dc51fb8e976a7bd98677c84a2 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 11 Mar 2026 15:13:40 -0700 Subject: [PATCH] Remove redundant calls to removeCredentials (since storeCredentials calls remove if needed). --- Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift | 1 - Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift | 2 -- .../Accounts/AccountsReaderAPIWindowController.swift | 2 -- iOS/Account/FeedbinAccountViewController.swift | 1 - iOS/Account/NewsBlurAccountViewController.swift | 2 -- iOS/Account/ReaderAPIAccountViewController.swift | 2 -- 6 files changed, 10 deletions(-) diff --git a/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift b/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift index 146e4490f..ffb83f47a 100644 --- a/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift +++ b/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift @@ -103,7 +103,6 @@ final class AccountsFeedbinWindowController: NSWindowController { } do { - try account?.removeCredentials(type: .basic) try account?.storeCredentials(validatedCredentials) do { diff --git a/Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift b/Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift index 85e08dd7e..dfd830588 100644 --- a/Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift +++ b/Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift @@ -101,8 +101,6 @@ final class AccountsNewsBlurWindowController: NSWindowController { } do { - try account?.removeCredentials(type: .newsBlurBasic) - try account?.removeCredentials(type: .newsBlurSessionID) try account?.storeCredentials(credentials) try account?.storeCredentials(validatedCredentials) diff --git a/Mac/Preferences/Accounts/AccountsReaderAPIWindowController.swift b/Mac/Preferences/Accounts/AccountsReaderAPIWindowController.swift index 8bce26576..99cf7060b 100644 --- a/Mac/Preferences/Accounts/AccountsReaderAPIWindowController.swift +++ b/Mac/Preferences/Accounts/AccountsReaderAPIWindowController.swift @@ -160,8 +160,6 @@ final class AccountsReaderAPIWindowController: NSWindowController { do { account?.endpointURL = apiURL - try account?.removeCredentials(type: .readerBasic) - try account?.removeCredentials(type: .readerAPIKey) try account?.storeCredentials(credentials) try account?.storeCredentials(validatedCredentials) diff --git a/iOS/Account/FeedbinAccountViewController.swift b/iOS/Account/FeedbinAccountViewController.swift index 4c8c87888..307274df9 100644 --- a/iOS/Account/FeedbinAccountViewController.swift +++ b/iOS/Account/FeedbinAccountViewController.swift @@ -117,7 +117,6 @@ final class FeedbinAccountViewController: UITableViewController { } do { - try? account?.removeCredentials(type: .basic) try account?.storeCredentials(validatedCredentials) account?.triggerRefreshAll() diff --git a/iOS/Account/NewsBlurAccountViewController.swift b/iOS/Account/NewsBlurAccountViewController.swift index 482bae4d4..7da180ffc 100644 --- a/iOS/Account/NewsBlurAccountViewController.swift +++ b/iOS/Account/NewsBlurAccountViewController.swift @@ -115,8 +115,6 @@ final class NewsBlurAccountViewController: UITableViewController { account = AccountManager.shared.createAccount(type: .newsBlur) } - try? account?.removeCredentials(type: .newsBlurBasic) - try? account?.removeCredentials(type: .newsBlurSessionID) do { try account?.storeCredentials(basicCredentials) try account?.storeCredentials(sessionCredentials) diff --git a/iOS/Account/ReaderAPIAccountViewController.swift b/iOS/Account/ReaderAPIAccountViewController.swift index 23895f604..574fd8ee8 100644 --- a/iOS/Account/ReaderAPIAccountViewController.swift +++ b/iOS/Account/ReaderAPIAccountViewController.swift @@ -169,8 +169,6 @@ final class ReaderAPIAccountViewController: UITableViewController { do { account?.endpointURL = url - try? account?.removeCredentials(type: .readerBasic) - try? account?.removeCredentials(type: .readerAPIKey) try account?.storeCredentials(credentials) try account?.storeCredentials(validatedCredentials)