Skip to content

Commit 9a4fd20

Browse files
committed
Fix some Periphery warnings.
1 parent e6c65df commit 9a4fd20

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Modules/Sources/Yosemite/PointOfSale/Coupons/PointOfSaleCouponFetchStrategy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public protocol PointOfSaleCouponFetchStrategy {
88
func fetchLocalCoupons() async throws -> [POSItem]
99
}
1010

11-
public struct PointOfSaleDefaultCouponFetchStrategy: PointOfSaleCouponFetchStrategy {
11+
struct PointOfSaleDefaultCouponFetchStrategy: PointOfSaleCouponFetchStrategy {
1212
private let siteID: Int64
1313
private let currencySettings: CurrencySettings
1414
private let storage: StorageManagerType

WooCommerce/Classes/POS/Presentation/PointOfSaleEntryPointView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import protocol Yosemite.PointOfSaleSettingsServiceProtocol
1414
import struct Yosemite.SiteSetting
1515
import protocol Yosemite.PointOfSaleCouponFetchStrategyFactoryProtocol
1616

17+
/// periphery: ignore - public in preparation of move to POS module
1718
public struct PointOfSaleEntryPointView: View {
1819
@State private var posModel: PointOfSaleAggregateModel?
1920
@StateObject private var posModalManager = POSModalManager()
@@ -38,6 +39,7 @@ public struct PointOfSaleEntryPointView: View {
3839
private let siteTimezone: TimeZone
3940
private let services: POSDependencyProviding
4041

42+
/// periphery: ignore - public in preparation of move to POS module
4143
public init(siteID: Int64,
4244
itemFetchStrategyFactory: PointOfSaleItemFetchStrategyFactoryProtocol,
4345
popularItemFetchStrategyFactory: PointOfSaleItemFetchStrategyFactoryProtocol,

WooCommerce/Classes/POS/Utils/PreviewHelpers.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,6 @@ final class POSOrderListFetchStrategyPreview: POSOrderListFetchStrategy {
507507
func fetchOrders(pageNumber: Int) async throws -> PagedItems<POSOrder> {
508508
PagedItems(items: [], hasMorePages: false, totalItems: nil)
509509
}
510-
511-
func fetchOrders(searchTerm: String, pageNumber: Int) async throws -> PagedItems<POSOrder> {
512-
PagedItems(items: [], hasMorePages: false, totalItems: nil)
513-
}
514510
}
515511

516512
final class PointOfSaleCouponFetchStrategyPreview: PointOfSaleCouponFetchStrategy {

0 commit comments

Comments
 (0)