Skip to content

Commit fbbef00

Browse files
committed
Remove unused code
1 parent eb02d0c commit fbbef00

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Modules/Sources/Yosemite/PointOfSale/OrderList/POSOrder.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public struct POSOrder: Equatable, Hashable {
1919
public let lineItems: [POSOrderItem]
2020
public let refunds: [POSOrderRefund]
2121
public let currency: String
22-
public let currencySymbol: String
2322
public let discountTotal: String
2423
public let totalTax: String
2524

@@ -35,7 +34,6 @@ public struct POSOrder: Equatable, Hashable {
3534
lineItems: [POSOrderItem] = [],
3635
refunds: [POSOrderRefund] = [],
3736
currency: String,
38-
currencySymbol: String,
3937
discountTotal: String,
4038
totalTax: String) {
4139
self.id = id
@@ -50,7 +48,6 @@ public struct POSOrder: Equatable, Hashable {
5048
self.lineItems = lineItems
5149
self.refunds = refunds
5250
self.currency = currency
53-
self.currencySymbol = currencySymbol
5451
self.discountTotal = discountTotal
5552
self.totalTax = totalTax
5653
}
@@ -81,7 +78,6 @@ public extension POSOrder {
8178
lineItems: posLineItems,
8279
refunds: posRefunds,
8380
currency: order.currency,
84-
currencySymbol: order.currencySymbol,
8581
discountTotal: order.discountTotal,
8682
totalTax: order.totalTax
8783
)

WooCommerce/Classes/POS/Presentation/Orders/PointOfSaleOrderDetailsView.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ private extension PointOfSaleOrderDetailsView {
134134
}
135135

136136
func imageSource(for item: POSOrderItem) -> String? {
137-
return nil
137+
// TODO: Will be addressed in the following PR
138+
return "\(item.productID - item.variationID)"
138139
}
139140

140141
@ViewBuilder
@@ -288,12 +289,6 @@ private extension PointOfSaleOrderDetailsView {
288289
// MARK: - Localization
289290

290291
private enum Localization {
291-
static let orderDetailsTitle = NSLocalizedString(
292-
"pos.orderDetailsView.title",
293-
value: "Order Details",
294-
comment: "Title for the order details screen when no specific order is selected"
295-
)
296-
297292
static func orderTitle(_ orderNumber: String) -> String {
298293
let format = NSLocalizedString(
299294
"pos.orderDetailsView.orderTitle",

0 commit comments

Comments
 (0)