Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Jan 14, 2025
1 parent 199dc49 commit 000a34b
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,4 @@ private class dydxSwitchAppModeAction: NSObject, NavigableProtocol {
completion?(nil, false)
}
}

private func cancelOrder(orderId: String, side: String, size: String, market: String, completion: RoutingCompletionBlock?) {
AbacusStateManager.shared.cancelOrder(orderId: orderId) { status in
switch status {
case .success:
ErrorInfo.shared?.info(
title: DataLocalizer.localize(path: "APP.TRADE.CANCELING_ORDER"),
message: DataLocalizer.localize(path: "APP.TRADE.CANCELING_ORDER_DESC", params: [
"SIDE": side,
"SIZE": size,
"MARKET": market
]),
type: .success, error: nil)
completion?(nil, true)
case .failed(let error):
ErrorInfo.shared?.info(title: nil, message: nil, type: .error, error: error)
HapticFeedback.shared?.notify(type: .error)
completion?(nil, false)
}
}
}
}

0 comments on commit 000a34b

Please sign in to comment.