Skip to content

Commit 3da9f2c

Browse files
committed
Remove unused diagnostic action delegate
1 parent edd009c commit 3da9f2c

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

Modules/Sources/Support/SupportDataProvider.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ public enum SupportFormAction {
55
case viewSupportForm
66
}
77

8-
public enum DiagnosticAction {
9-
case clearDiskCache
10-
}
11-
12-
public enum DiagnosticActionStatus {
13-
case running(progress: Float)
14-
case success
15-
case error(Error)
16-
}
17-
188
@MainActor
199
public final class SupportDataProvider: ObservableObject, Sendable {
2010

@@ -44,10 +34,6 @@ public final class SupportDataProvider: ObservableObject, Sendable {
4434
self.supportDelegate?.userDid(action)
4535
}
4636

47-
public func userDid(_ action: DiagnosticAction, progress: @escaping (DiagnosticActionStatus) -> Void) {
48-
self.supportDelegate?.userDid(action, progress: progress)
49-
}
50-
5137
// Support Bots Data Source
5238
public func loadSupportIdentity() throws -> any CachedAndFetchedResult<SupportUser> {
5339
try self.userDataProvider.fetchCurrentSupportUser()
@@ -162,7 +148,6 @@ extension SupportFormDataProvider {
162148

163149
public protocol SupportDelegate: NSObject {
164150
func userDid(_ action: SupportFormAction)
165-
func userDid(_ action: DiagnosticAction, progress: (DiagnosticActionStatus) -> Void)
166151
}
167152

168153
public enum SupportUserPermission: Sendable, Codable {

WordPress/Classes/ViewRelated/NewSupport/SupportDataProvider.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ class WpSupportDelegate: NSObject, SupportDelegate {
4848
func userDid(_ action: Support.SupportFormAction) {
4949
// TODO: Handle metrics
5050
}
51-
52-
func userDid(_ action: Support.DiagnosticAction, progress: (Support.DiagnosticActionStatus) -> Void) {
53-
// TODO: Handle user actions
54-
}
5551
}
5652

5753
actor WpBotConversationDataProvider: BotConversationDataProvider {

0 commit comments

Comments
 (0)