diff --git a/app/util/notifications/hooks/useSwitchNotifications.ts b/app/util/notifications/hooks/useSwitchNotifications.ts index 9edf53a3dad..a85e13736fe 100644 --- a/app/util/notifications/hooks/useSwitchNotifications.ts +++ b/app/util/notifications/hooks/useSwitchNotifications.ts @@ -75,31 +75,6 @@ export function useSwitchNotifications() { }; } -export function useRefetchAccountSettings( - isMetamaskNotificationsEnabled: boolean, -) { - const getAccountSettings = useCallback( - async (accounts: string[]): Promise => { - try { - if (!isMetamaskNotificationsEnabled) { - return {}; - } - const result = - await Engine.context.NotificationServicesController.checkAccountsPresence( - accounts, - ); - - return result; - } catch { - return {}; - } - }, - [isMetamaskNotificationsEnabled], - ); - - return { getAccountSettings }; -} - /** * Account Settings Hook. * Gets initial loading states, and returns enable/disable account states.