Skip to content

Commit a88b60d

Browse files
committed
periphery cleanup
1 parent 12a6cc9 commit a88b60d

File tree

10 files changed

+4
-121
lines changed

10 files changed

+4
-121
lines changed

Modules/Sources/Networking/Remote/PaymentRemote.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public protocol PaymentRemoteProtocol {
2828

2929
/// WPCOM Payment Endpoints
3030
///
31+
// periphery:ignore
3132
public class PaymentRemote: Remote, PaymentRemoteProtocol {
3233
public func loadPlan(thatMatchesID productID: Int64) async throws -> WPComPlan {
3334
let path = Path.products
@@ -103,6 +104,7 @@ public struct WPComPlan: Decodable, Equatable {
103104
}
104105

105106
/// Contains necessary data for a site's WPCOM plan.
107+
// periphery:ignore
106108
public struct WPComSitePlan: Equatable {
107109
/// ID of the WPCOM plan.
108110
///

Modules/Sources/Yosemite/Tools/InAppPurchases/AppAccountToken.swift

Lines changed: 0 additions & 35 deletions
This file was deleted.

Modules/Tests/YosemiteTests/Tools/InAppPurchases/AppAccountTokenTests.swift

Lines changed: 0 additions & 22 deletions
This file was deleted.

WooCommerce/Classes/Extensions/UIImage+Woo.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -716,12 +716,6 @@ extension UIImage {
716716
.imageFlippedForRightToLeftLayoutDirection()
717717
}
718718

719-
/// Shopping cart Purple
720-
///
721-
static var shoppingCartFilled: UIImage {
722-
return UIImage(named: "icon-shopping-cart-filled")!
723-
}
724-
725719
/// Bordered Custom Amount
726720
///
727721
static var borderedCustomAmount: UIImage {

WooCommerce/Classes/ViewRelated/Dashboard/Free Trial/StorePlanBanner.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
import SwiftUI
22

3-
/// Hosting controller for `StorePlanBanner`.
4-
///
5-
final class StorePlanBannerHostingViewController: UIHostingController<StorePlanBanner> {
6-
/// Designated initializer.
7-
///
8-
init(text: String) {
9-
super.init(rootView: StorePlanBanner(text: text))
10-
}
11-
12-
/// Needed for protocol conformance.
13-
///
14-
required dynamic init?(coder aDecoder: NSCoder) {
15-
fatalError("init(coder:) has not been implemented")
16-
}
17-
}
18-
193
/// Store Plan Banner. To be used inside the Dashboard.
204
///
215
struct StorePlanBanner: View {

WooCommerce/Classes/ViewRelated/InAppPurchases/InAppPurchasesForWPComPlansManager.swift

Lines changed: 0 additions & 13 deletions
This file was deleted.

WooCommerce/Classes/ViewRelated/Upgrades/StorePlanSynchronizer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Experiments
55

66
/// Protocol for used to mock `StorePlanSynchronizer`.
77
///
8+
// periphery:ignore
89
protocol StorePlanSynchronizing {
910
/// Publisher for the current synced plan.
1011
var planStatePublisher: AnyPublisher<StorePlanSyncState, Never> { get }
@@ -55,8 +56,7 @@ final class StorePlanSynchronizer: StorePlanSynchronizing {
5556
///
5657
private var subscriptions: Set<AnyCancellable> = []
5758

58-
init(stores: StoresManager = ServiceLocator.stores,
59-
pushNotesManager: PushNotesManager = ServiceLocator.pushNotesManager) {
59+
init(stores: StoresManager = ServiceLocator.stores) {
6060
self.stores = stores
6161

6262
stores.site.sink { [weak self] site in

WooCommerce/Resources/Images.xcassets/icon-shopping-cart-filled.imageset/Contents.json

Lines changed: 0 additions & 15 deletions
This file was deleted.
Binary file not shown.

WooCommerce/WooCommerce.xcodeproj/project.pbxproj

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,6 @@
20732073
B95A45EC2A77D7A60073A91F /* CustomerSelectorViewModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B95A45EB2A77D7A60073A91F /* CustomerSelectorViewModelTests.swift */; };
20742074
B95B15C92B15EBA000A54044 /* UpdateProductInventoryViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = B95B15C82B15EBA000A54044 /* UpdateProductInventoryViewModel.swift */; };
20752075
B96B536B2816ECFC00F753E6 /* CardPresentPluginsDataProviderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B96B536A2816ECFC00F753E6 /* CardPresentPluginsDataProviderTests.swift */; };
2076-
B96D6C0729081AE5003D2DC0 /* InAppPurchasesForWPComPlansManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = B96D6C0629081AE5003D2DC0 /* InAppPurchasesForWPComPlansManager.swift */; };
20772076
B976D5BB2D3808A000D01E2E /* WooShippingCustomsFormViewModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B976D5BA2D38089C00D01E2E /* WooShippingCustomsFormViewModelTests.swift */; };
20782077
B97C6E562B15E51A008A2BF2 /* UpdateProductInventoryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B97C6E552B15E51A008A2BF2 /* UpdateProductInventoryView.swift */; };
20792078
B98968572A98F227007A2FBE /* TaxEducationalDialogViewModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B98968562A98F227007A2FBE /* TaxEducationalDialogViewModelTests.swift */; };
@@ -5282,7 +5281,6 @@
52825281
B95A45EB2A77D7A60073A91F /* CustomerSelectorViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomerSelectorViewModelTests.swift; sourceTree = "<group>"; };
52835282
B95B15C82B15EBA000A54044 /* UpdateProductInventoryViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateProductInventoryViewModel.swift; sourceTree = "<group>"; };
52845283
B96B536A2816ECFC00F753E6 /* CardPresentPluginsDataProviderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardPresentPluginsDataProviderTests.swift; sourceTree = "<group>"; };
5285-
B96D6C0629081AE5003D2DC0 /* InAppPurchasesForWPComPlansManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InAppPurchasesForWPComPlansManager.swift; sourceTree = "<group>"; };
52865284
B976D5BA2D38089C00D01E2E /* WooShippingCustomsFormViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WooShippingCustomsFormViewModelTests.swift; sourceTree = "<group>"; };
52875285
B97C6E552B15E51A008A2BF2 /* UpdateProductInventoryView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateProductInventoryView.swift; sourceTree = "<group>"; };
52885286
B98968562A98F227007A2FBE /* TaxEducationalDialogViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TaxEducationalDialogViewModelTests.swift; sourceTree = "<group>"; };
@@ -10774,7 +10772,6 @@
1077410772
02B1AA6329A4704C00D54FCB /* FilterTabBar */,
1077510773
DEF8CF0829A71ED400800A60 /* JetpackSetup */,
1077610774
02E3B62629026C83007E0F13 /* Authentication */,
10777-
E1325EF928FD543B00EC9B2A /* InAppPurchases */,
1077810775
03FBDA9B263AD47200ACE257 /* Coupons */,
1077910776
571B850024CF7E1600CF58A7 /* InAppFeedback */,
1078010777
0235594024496414004BE2B8 /* BottomSheet */,
@@ -13796,14 +13793,6 @@
1379613793
path = Settings;
1379713794
sourceTree = "<group>";
1379813795
};
13799-
E1325EF928FD543B00EC9B2A /* InAppPurchases */ = {
13800-
isa = PBXGroup;
13801-
children = (
13802-
B96D6C0629081AE5003D2DC0 /* InAppPurchasesForWPComPlansManager.swift */,
13803-
);
13804-
path = InAppPurchases;
13805-
sourceTree = "<group>";
13806-
};
1380713796
E138D4F2269ED99A006EA5C6 /* In-Person Payments */ = {
1380813797
isa = PBXGroup;
1380913798
children = (
@@ -16986,7 +16975,6 @@
1698616975
CCFC50592743E021001E505F /* EditableOrderViewModel.swift in Sources */,
1698716976
CCFBBCF429C4B8AF0081B595 /* ComponentsList.swift in Sources */,
1698816977
2004E2C62C076D4500D62521 /* CardPresentPaymentResult.swift in Sources */,
16989-
B96D6C0729081AE5003D2DC0 /* InAppPurchasesForWPComPlansManager.swift in Sources */,
1699016978
6856DB2E741639716E149967 /* KeyboardStateProvider.swift in Sources */,
1699116979
B95700AC2A72C1E4001BADF2 /* CustomerSelectorViewController.swift in Sources */,
1699216980
ABC35F18E744C5576B986CB3 /* InPersonPaymentsUnavailableView.swift in Sources */,

0 commit comments

Comments
 (0)