From 4dd218daf65900f1a34d0c0e46a09c784b45d0ea Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Fri, 13 Aug 2021 15:46:40 +1000 Subject: [PATCH] Delete unused MockTURNServer --- Session.xcodeproj/project.pbxproj | 4 ---- SessionMessagingKit/Calls/MockTURNServer.swift | 16 ---------------- SessionMessagingKit/Calls/TestCallConfig.swift | 1 - 3 files changed, 21 deletions(-) delete mode 100644 SessionMessagingKit/Calls/MockTURNServer.swift diff --git a/Session.xcodeproj/project.pbxproj b/Session.xcodeproj/project.pbxproj index cf7dfeb6f..fb4e3740c 100644 --- a/Session.xcodeproj/project.pbxproj +++ b/Session.xcodeproj/project.pbxproj @@ -158,7 +158,6 @@ B8041A9525C8FA1D003C2166 /* MediaLoaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8041A9425C8FA1D003C2166 /* MediaLoaderView.swift */; }; B8041AA725C90927003C2166 /* TypingIndicatorCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8041AA625C90927003C2166 /* TypingIndicatorCell.swift */; }; B806ECA126C4A7E4008BDA44 /* CallManager+UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = B806ECA026C4A7E4008BDA44 /* CallManager+UI.swift */; }; - B806ECA326C4A8C6008BDA44 /* MockTURNServer.swift in Sources */ = {isa = PBXBuildFile; fileRef = B806ECA226C4A8C6008BDA44 /* MockTURNServer.swift */; }; B80A579F23DFF1F300876683 /* NewClosedGroupVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = B80A579E23DFF1F300876683 /* NewClosedGroupVC.swift */; }; B80F469A26C63DD000DCE243 /* RoomInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = B80F469926C63DD000DCE243 /* RoomInfo.swift */; }; B817AD9A26436593009DF825 /* SimplifiedConversationCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = B817AD9926436593009DF825 /* SimplifiedConversationCell.swift */; }; @@ -1154,7 +1153,6 @@ B8041A9425C8FA1D003C2166 /* MediaLoaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MediaLoaderView.swift; sourceTree = ""; }; B8041AA625C90927003C2166 /* TypingIndicatorCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TypingIndicatorCell.swift; sourceTree = ""; }; B806ECA026C4A7E4008BDA44 /* CallManager+UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CallManager+UI.swift"; sourceTree = ""; }; - B806ECA226C4A8C6008BDA44 /* MockTURNServer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockTURNServer.swift; sourceTree = ""; }; B80A579E23DFF1F300876683 /* NewClosedGroupVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewClosedGroupVC.swift; sourceTree = ""; }; B80F469926C63DD000DCE243 /* RoomInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomInfo.swift; sourceTree = ""; }; B817AD9926436593009DF825 /* SimplifiedConversationCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimplifiedConversationCell.swift; sourceTree = ""; }; @@ -2372,7 +2370,6 @@ B8DE1FB326C22F2F0079C9CE /* CallManager.swift */, B806ECA026C4A7E4008BDA44 /* CallManager+UI.swift */, B8B558FE26C4E05E00693325 /* CallManager+Messages.swift */, - B806ECA226C4A8C6008BDA44 /* MockTURNServer.swift */, B8B5590026C4E2A400693325 /* SignalingMessage.swift */, B8B558FA26C4D25C00693325 /* WebSocket.swift */, B8B558F226C4CA4600693325 /* TestCallConfig.swift */, @@ -4798,7 +4795,6 @@ B8856D11256F112A001CE70E /* OWSAudioSession.swift in Sources */, C3DB66C3260ACCE6001EFC55 /* OpenGroupPollerV2.swift in Sources */, C3C2A75F2553A3C500C340D1 /* VisibleMessage+LinkPreview.swift in Sources */, - B806ECA326C4A8C6008BDA44 /* MockTURNServer.swift in Sources */, C32C5FBB256E0206003C73A2 /* OWSBackgroundTask.m in Sources */, B8856CA8256F0F42001CE70E /* OWSBackupFragment.m in Sources */, C32C5C3D256DCBAF003C73A2 /* AppReadiness.m in Sources */, diff --git a/SessionMessagingKit/Calls/MockTURNServer.swift b/SessionMessagingKit/Calls/MockTURNServer.swift deleted file mode 100644 index 924f3432a..000000000 --- a/SessionMessagingKit/Calls/MockTURNServer.swift +++ /dev/null @@ -1,16 +0,0 @@ -import PromiseKit - -enum MockTURNSserver { - - static func getICEServerURL() -> Promise { - HTTP.execute(.get, "https://appr.tc/params").map2 { json in - guard let url = json["ice_server_url"] as? String else { throw HTTP.Error.invalidJSON } - return url - } - } - - static func makeTurnServerRequest(iceServerURL: String) -> Promise { - let headers = [ "referer" : "https://appr.tc" ] - return HTTP.execute(.post, iceServerURL, body: nil, headers: headers) - } -} diff --git a/SessionMessagingKit/Calls/TestCallConfig.swift b/SessionMessagingKit/Calls/TestCallConfig.swift index d461df08c..9bdec5f31 100644 --- a/SessionMessagingKit/Calls/TestCallConfig.swift +++ b/SessionMessagingKit/Calls/TestCallConfig.swift @@ -1,7 +1,6 @@ public enum TestCallConfig { - public static let defaultSignalingServerURL = "ws://developereric.com:8080" public static let defaultICEServers = [ "stun:stun.l.google.com:19302", "stun:stun1.l.google.com:19302",