From 9efb499be7c7fac65951aa8c51f56d316b77fbca Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Mon, 23 Oct 2023 05:40:43 -0300 Subject: [PATCH] Remove deprecated code --- Sources/GoTrue/Deprecated.swift | 14 -------------- Sources/Realtime/RealtimeClient.swift | 14 -------------- 2 files changed, 28 deletions(-) delete mode 100644 Sources/GoTrue/Deprecated.swift diff --git a/Sources/GoTrue/Deprecated.swift b/Sources/GoTrue/Deprecated.swift deleted file mode 100644 index 3db80c61..00000000 --- a/Sources/GoTrue/Deprecated.swift +++ /dev/null @@ -1,14 +0,0 @@ -import Foundation - -extension GoTrueMetaSecurity { - @available(*, deprecated, renamed: "captchaToken") - public var hcaptchaToken: String { - get { captchaToken } - set { captchaToken = newValue } - } - - @available(*, deprecated, renamed: "init(captchaToken:)") - public init(hcaptchaToken: String) { - self.init(captchaToken: hcaptchaToken) - } -} diff --git a/Sources/Realtime/RealtimeClient.swift b/Sources/Realtime/RealtimeClient.swift index 3133a2d1..eb9ab62a 100644 --- a/Sources/Realtime/RealtimeClient.swift +++ b/Sources/Realtime/RealtimeClient.swift @@ -193,20 +193,6 @@ public class RealtimeClient: TransportDelegate { ) } - @available(*, deprecated, renamed: "init(_:params:vsn:)") - public convenience init( - endPoint: String, - params: Payload? = nil, - vsn: String = Defaults.vsn - ) { - self.init( - endPoint: endPoint, - transport: { url in URLSessionTransport(url: url) }, - paramsClosure: { params }, - vsn: vsn - ) - } - public init( endPoint: String, transport: @escaping ((URL) -> Transport),