Browse Source

Remove debugging

Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
Henrik Storch 2 years ago
parent
commit
a7642e0ce0
2 changed files with 1 additions and 3 deletions
  1. 0 1
      NextcloudTests/UserAgentTests.swift
  2. 1 2
      iOSClient/Utility/NCUtility.swift

+ 0 - 1
NextcloudTests/UserAgentTests.swift

@@ -58,7 +58,6 @@ class UserAgentTests: XCTestCase {
 
     func matches(for regex: String, in text: String) throws -> [NSTextCheckingResult] {
         let range = NSRange(location: 0, length: text.utf16.count)
-        print(regex, text)
         let regex = try NSRegularExpression(pattern: regex)
         return regex.matches(in: text, range: range)
     }

+ 1 - 2
iOSClient/Utility/NCUtility.swift

@@ -28,7 +28,6 @@ import NCCommunication
 import PDFKit
 import Accelerate
 import CoreMedia
-import WebKit
 
 // MARK: - NCUtility
 
@@ -310,7 +309,7 @@ class NCUtility: NSObject {
         let userAgent: String = CCUtility.getUserAgent()
         if UIDevice.current.userInterfaceIdiom == .phone {
             // NOTE: Hardcoded (May 2022)
-            // Tested for iPhone SE (1st), iOS 12; iPhone Pro Max, iOS 15.4; iPhone X,
+            // Tested for iPhone SE (1st), iOS 12; iPhone Pro Max, iOS 15.4
             // 605.1.15 = WebKit build version
             // 15E148 = frozen iOS build number according to: https://chromestatus.com/feature/4558585463832576
             return userAgent + " " + "AppleWebKit/605.1.15 Mobile/15E148"