other(networking): remove unused workflows OperationQueue and HTTP path cases (#7145)

Follow-up to the dead-endpoint-subsystem deletion: the dedicated
workflows OperationQueue (allocated on every Backend init, capped at
4 concurrent operations) was only ever consumed by the now-deleted
WorkflowsAPI, and HTTPRequestPath's .getWorkflow/.getWorkflows cases
had no remaining production caller. Confirmed via grep before removal.
This commit is contained in:
Facundo Menzella authored and GitHub committed 2026-07-08 13:08:08 +02:00
1 parent eed174356a
commit de6bccae28
9 files changed
+3 -91

No files matched your search

@@ -145,8 +145,6 @@ extension HTTPRequest {
case getProductEntitlementMapping
case getCustomerCenterConfig(appUserID: String)
case getVirtualCurrencies(appUserID: String)
case getWorkflows(appUserID: String, type: String?)
case getWorkflow(appUserID: String, workflowId: String)
case postRedeemWebPurchase
case postCreateTicket
case isPurchaseAllowedByRestoreBehavior(appUserID: String)
@@ -198,14 +196,6 @@ extension HTTPRequest.Path: HTTPRequestPath {
return "/v1/offerings"
case .getProductEntitlementMapping:
return "/v1/product_entitlement_mapping"
case let .getWorkflows(_, type):
let base = "/workflows/v1/workflows"
if let type = type {
return "\(base)?type=\(Self.escape(type))"
}
return base
case let .getWorkflow(_, workflowId):
return "/workflows/v1/workflows/\(Self.escape(workflowId))"
case let .remoteConfig(domain):
return "/v1/config/\(Self.escape(domain))"
default:
@@ -234,8 +224,6 @@ extension HTTPRequest.Path: HTTPRequestPath {
switch self {
case .getCustomerInfo,
.getOfferings,
.getWorkflows,
.getWorkflow,
.getIntroEligibility,
.logIn,
.postAttributionData,
@@ -264,8 +252,6 @@ extension HTTPRequest.Path: HTTPRequestPath {
switch self {
case .getCustomerInfo,
.getOfferings,
.getWorkflows,
.getWorkflow,
.getIntroEligibility,
.logIn,
.postAttributionData,
@@ -298,8 +284,6 @@ extension HTTPRequest.Path: HTTPRequestPath {
.getOfferings,
.getProductEntitlementMapping,
.getVirtualCurrencies,
.getWorkflows,
.getWorkflow,
.appHealthReport,
.appHealthReportAvailability,
.isPurchaseAllowedByRestoreBehavior,
@@ -330,9 +314,7 @@ extension HTTPRequest.Path: HTTPRequestPath {
.remoteConfig,
.rewardVerificationStatus:
return true
case .getWorkflow,
.getWorkflows,
.getOfferings,
case .getOfferings,
.getIntroEligibility,
.postSubscriberAttributes,
.postAttributionData,
@@ -410,16 +392,6 @@ extension HTTPRequest.Path: HTTPRequestPath {
case let .getVirtualCurrencies(appUserID):
return "subscribers/\(Self.escape(appUserID))/virtual_currencies"
case let .getWorkflow(appUserID, workflowId):
return "subscribers/\(Self.escape(appUserID))/workflows/\(Self.escape(workflowId))"
case let .getWorkflows(appUserID, type):
let base = "subscribers/\(Self.escape(appUserID))/workflows"
if let type = type {
return "\(base)?type=\(Self.escape(type))"
}
return base
case .postCreateTicket:
return "customercenter/support/create-ticket"
case let .isPurchaseAllowedByRestoreBehavior(appUserID):
@@ -441,12 +413,6 @@ extension HTTPRequest.Path: HTTPRequestPath {
case .getOfferings:
return "get_offerings"
case .getWorkflow:
return "get_workflow"
case .getWorkflows:
return "get_workflows"
case .getIntroEligibility:
return "get_intro_eligibility"