From f241232972bbcadd0376f549352fef287ba11566 Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Thu, 28 Dec 2023 23:07:20 +0100 Subject: [PATCH] Remove user (IOS-192) --- Mastodon/Protocol/Provider/DataSourceFacade+SearchHistory.swift | 2 -- .../DataSourceProvider+NotificationTableViewCellDelegate.swift | 2 -- .../DataSourceProvider+StatusTableViewCellDelegate.swift | 2 -- .../Provider/DataSourceProvider+UITableViewDelegate.swift | 2 -- Mastodon/Protocol/Provider/DataSourceProvider.swift | 2 -- .../SearchResultViewController+DataSourceProvider.swift | 2 -- 6 files changed, 12 deletions(-) diff --git a/Mastodon/Protocol/Provider/DataSourceFacade+SearchHistory.swift b/Mastodon/Protocol/Provider/DataSourceFacade+SearchHistory.swift index b4b9613cb..76b19fa10 100644 --- a/Mastodon/Protocol/Provider/DataSourceFacade+SearchHistory.swift +++ b/Mastodon/Protocol/Provider/DataSourceFacade+SearchHistory.swift @@ -42,8 +42,6 @@ extension DataSourceFacade { try? FileManager.default.addSearchItem(searchEntry, for: provider.authContext.mastodonAuthenticationBox) case .status: break - case .user(_): - break case .notification: break diff --git a/Mastodon/Protocol/Provider/DataSourceProvider+NotificationTableViewCellDelegate.swift b/Mastodon/Protocol/Provider/DataSourceProvider+NotificationTableViewCellDelegate.swift index 029aec5d4..7f139428f 100644 --- a/Mastodon/Protocol/Provider/DataSourceProvider+NotificationTableViewCellDelegate.swift +++ b/Mastodon/Protocol/Provider/DataSourceProvider+NotificationTableViewCellDelegate.swift @@ -487,8 +487,6 @@ extension NotificationTableViewCellDelegate where Self: DataSourceProvider & Aut target: .status, // remove reblog wrapper status: status ) - case .user(let user): - break case .account(let account, let relationship): await DataSourceFacade.coordinateToProfileScene(provider: self, account: account) case .notification: diff --git a/Mastodon/Protocol/Provider/DataSourceProvider+StatusTableViewCellDelegate.swift b/Mastodon/Protocol/Provider/DataSourceProvider+StatusTableViewCellDelegate.swift index 0edb9e0cd..9d75caf6d 100644 --- a/Mastodon/Protocol/Provider/DataSourceProvider+StatusTableViewCellDelegate.swift +++ b/Mastodon/Protocol/Provider/DataSourceProvider+StatusTableViewCellDelegate.swift @@ -693,8 +693,6 @@ extension StatusTableViewCellDelegate where Self: DataSourceProvider & AuthConte provider: self, account: account ) - case .user(_): - assertionFailure("TODO") case .notification: assertionFailure("TODO") case .hashtag(_): diff --git a/Mastodon/Protocol/Provider/DataSourceProvider+UITableViewDelegate.swift b/Mastodon/Protocol/Provider/DataSourceProvider+UITableViewDelegate.swift index bf3570dbc..5233236b7 100644 --- a/Mastodon/Protocol/Provider/DataSourceProvider+UITableViewDelegate.swift +++ b/Mastodon/Protocol/Provider/DataSourceProvider+UITableViewDelegate.swift @@ -30,8 +30,6 @@ extension UITableViewDelegate where Self: DataSourceProvider & AuthContextProvid target: .status, // remove reblog wrapper status: status ) - case .user(let user): - break case .hashtag(let tag): await DataSourceFacade.coordinateToHashtagScene( provider: self, diff --git a/Mastodon/Protocol/Provider/DataSourceProvider.swift b/Mastodon/Protocol/Provider/DataSourceProvider.swift index 30adaeacb..6334870b8 100644 --- a/Mastodon/Protocol/Provider/DataSourceProvider.swift +++ b/Mastodon/Protocol/Provider/DataSourceProvider.swift @@ -13,8 +13,6 @@ import class CoreDataStack.Notification enum DataSourceItem: Hashable { case status(record: MastodonStatus) - @available(*, deprecated, message: "Use .account") - case user(record: ManagedObjectRecord) case hashtag(tag: Mastodon.Entity.Tag) case notification(record: MastodonNotification) case account(account: Mastodon.Entity.Account, relationship: Mastodon.Entity.Relationship?) diff --git a/Mastodon/Scene/Search/SearchDetail/SearchResult/SearchResultViewController+DataSourceProvider.swift b/Mastodon/Scene/Search/SearchDetail/SearchResult/SearchResultViewController+DataSourceProvider.swift index b2fc91781..b6441e86a 100644 --- a/Mastodon/Scene/Search/SearchDetail/SearchResult/SearchResultViewController+DataSourceProvider.swift +++ b/Mastodon/Scene/Search/SearchDetail/SearchResult/SearchResultViewController+DataSourceProvider.swift @@ -69,8 +69,6 @@ extension SearchResultViewController { target: .status, // remove reblog wrapper status: status ) - case .user(let user): - assertionFailure() case .hashtag(let tag): await DataSourceFacade.coordinateToHashtagScene( provider: self,