diff --git a/App/iOS/Delegates/AppDelegate.swift b/App/iOS/Delegates/AppDelegate.swift index d9bb0916b16..b86bed64ed2 100644 --- a/App/iOS/Delegates/AppDelegate.swift +++ b/App/iOS/Delegates/AppDelegate.swift @@ -113,8 +113,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { AppState.shared.state = .launching(options: launchOptions ?? [:], active: true) - log.error("AppDelegate did Finish") - // IAPs can trigger on the app as soon as it launches, // for example when a previous transaction was not finished and is in pending state. SKPaymentQueue.default().add(BraveVPN.iapObserver) diff --git a/Sources/BraveShared/TargetExtensions.swift b/Sources/BraveShared/TargetExtensions.swift deleted file mode 100644 index 68ef97441f2..00000000000 --- a/Sources/BraveShared/TargetExtensions.swift +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2023 The Brave Authors. All rights reserved. -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import Foundation - -public struct Scheme { - public enum SchemeType { - case url, query - } - - private let type: SchemeType - private let urlOrQuery: String - - init?(item: NSSecureCoding) { - if let text = item as? String { - urlOrQuery = text - type = .query - } else if let url = (item as? URL)?.absoluteString.firstURL?.absoluteString { - urlOrQuery = url - type = .url - } else { - return nil - } - } - - var schemeUrl: URL? { - var components = URLComponents() - let queryItem: URLQueryItem - - components.scheme = Bundle.main.infoDictionary?["BRAVE_URL_SCHEME"] as? String ?? "brave" - - switch type { - case .url: - components.host = "open-url" - queryItem = URLQueryItem(name: "url", value: urlOrQuery) - case .query: - components.host = "search" - queryItem = URLQueryItem(name: "q", value: urlOrQuery) - } - - components.queryItems = [queryItem] - return components.url - } -} diff --git a/Sources/BraveVPN/BuyVPNViewController.swift b/Sources/BraveVPN/BuyVPNViewController.swift index 8778b2991cb..29e7e223795 100644 --- a/Sources/BraveVPN/BuyVPNViewController.swift +++ b/Sources/BraveVPN/BuyVPNViewController.swift @@ -116,8 +116,6 @@ class BuyVPNViewController: VPNSetupLoadingController { iapObserver.delegate = self Preferences.VPN.popupShowed.value = true - - Logger.module.error("Failed to retrieve subcription product") } override func viewWillAppear(_ animated: Bool) {