mirror of
https://github.com/signalapp/Signal-iOS.git
synced 2025-12-05 01:10:41 +00:00
Remove unused unfrontedBaseUrl.
This commit is contained in:
@@ -160,11 +160,9 @@ public class OWSSignalService: OWSSignalServiceProtocol {
|
||||
let censorshipConfiguration = censorshipConfigurationParams.build()
|
||||
let frontingURLWithoutPathPrefix = censorshipConfiguration.domainFrontBaseUrl
|
||||
let frontingURLWithPathPrefix = frontingURLWithoutPathPrefix.appendingPathComponent(censorshipCircumventionPathPrefix)
|
||||
let unfrontedBaseUrl = baseUrl
|
||||
let frontingInfo = OWSUrlFrontingInfo(
|
||||
frontingURLWithoutPathPrefix: frontingURLWithoutPathPrefix,
|
||||
frontingURLWithPathPrefix: frontingURLWithPathPrefix,
|
||||
unfrontedBaseUrl: unfrontedBaseUrl
|
||||
)
|
||||
let baseUrl = frontingURLWithPathPrefix
|
||||
let securityPolicy = censorshipConfiguration.domainFrontSecurityPolicy
|
||||
|
||||
@@ -76,7 +76,6 @@ public struct OWSUrlDownloadResponse {
|
||||
struct OWSUrlFrontingInfo {
|
||||
public let frontingURLWithoutPathPrefix: URL
|
||||
public let frontingURLWithPathPrefix: URL
|
||||
public let unfrontedBaseUrl: URL
|
||||
|
||||
func isFrontedUrl(_ urlString: String) -> Bool {
|
||||
urlString.lowercased().hasPrefix(frontingURLWithoutPathPrefix.absoluteString)
|
||||
@@ -162,12 +161,6 @@ public protocol OWSURLSessionProtocol: AnyObject {
|
||||
}
|
||||
|
||||
extension OWSURLSessionProtocol {
|
||||
var unfrontedBaseUrl: URL? {
|
||||
endpoint.frontingInfo?.unfrontedBaseUrl ?? endpoint.baseUrl
|
||||
}
|
||||
|
||||
// MARK: Convenience Methods
|
||||
|
||||
init(
|
||||
endpoint: OWSURLSessionEndpoint,
|
||||
configuration: URLSessionConfiguration,
|
||||
|
||||
Reference in New Issue
Block a user