Remove unused unfrontedBaseUrl.

This commit is contained in:
Sasha Weiss
2025-11-27 01:37:17 -06:00
committed by GitHub
parent 7d1f51ddc2
commit 5439d9e0b6
2 changed files with 0 additions and 9 deletions

View File

@@ -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

View File

@@ -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,