@@ -42,8 +42,6 @@ public class SettingStore: Store {
4242 synchronizeAdvancedSiteSettings ( siteID: siteID, onCompletion: onCompletion)
4343 case . retrieveSiteAPI( let siteID, let onCompletion) :
4444 retrieveSiteAPI ( siteID: siteID, onCompletion: onCompletion)
45- case let . getPaymentsPagePath( siteID, onCompletion) :
46- getPaymentsPagePath ( siteID: siteID, onCompletion: onCompletion)
4745 case let . retrieveCouponSetting( siteID, onCompletion) :
4846 retrieveCouponSetting ( siteID: siteID, onCompletion: onCompletion)
4947 case let . enableCouponSetting( siteID, onCompletion) :
@@ -113,17 +111,6 @@ private extension SettingStore {
113111 siteAPIRemote. loadAPIInformation ( for: siteID, completion: onCompletion)
114112 }
115113
116- /// Retrieves the store payments page path.
117- ///
118- func getPaymentsPagePath( siteID: Int64 , onCompletion: @escaping ( Result < String , SettingStore . SettingError > ) -> Void ) {
119- guard let paymentPageSettings = sharedDerivedStorage. loadSiteSetting ( siteID: siteID, settingID: SettingKeys . paymentsPage) ,
120- let paymentPagePath = paymentPageSettings. value else {
121- return onCompletion ( . failure( SettingError . paymentsPageNotFound) )
122- }
123-
124- onCompletion ( . success( paymentPagePath) )
125- }
126-
127114 /// Retrieves the setting for whether coupons are enabled for the specified store
128115 ///
129116 func retrieveCouponSetting( siteID: Int64 , onCompletion: @escaping ( Result < Bool , Error > ) -> Void ) {
@@ -283,18 +270,9 @@ extension SettingStore {
283270
284271// MARK: Definitions
285272extension SettingStore {
286- /// Possible store errors.
287- ///
288- public enum SettingError : Swift . Error {
289- /// Payment page path was not found
290- ///
291- case paymentsPageNotFound
292- }
293-
294273 /// Settings keys.
295274 ///
296275 private enum SettingKeys {
297- static let paymentsPage = " woocommerce_checkout_pay_endpoint "
298276 static let coupons = " woocommerce_enable_coupons "
299277 static let analytics = " woocommerce_analytics_enabled "
300278 }
0 commit comments