From e03fa9dc7712665cc9af5fbbcb355313746194bb Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Fri, 25 Aug 2023 17:11:48 +0200 Subject: [PATCH] Revert "helper function to generate the logout url" This reverts commit 5fc236cc6cb37bea252a2933cd613b603b18528a. --- .../AutoDiscovery/MXWellKnownAuthentication.h | 2 -- .../AutoDiscovery/MXWellKnownAuthentication.m | 17 ----------------- 2 files changed, 19 deletions(-) diff --git a/MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.h b/MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.h index 23a7c2522..b224edf4e 100644 --- a/MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.h +++ b/MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.h @@ -33,8 +33,6 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, readonly) NSString *issuer; @property (nonatomic, readonly, nullable) NSString *account; --(NSURL * _Nullable) getMasLogoutDeviceURLFromDeviceID: (NSString * ) deviceID; - @end NS_ASSUME_NONNULL_END diff --git a/MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.m b/MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.m index 03dc13695..2cce0def7 100644 --- a/MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.m +++ b/MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.m @@ -45,23 +45,6 @@ + (instancetype)modelFromJSON:(NSDictionary *)JSONDictionary return wellKnownAuthentication; } --(NSURL * _Nullable) getMasLogoutDeviceURLFromDeviceID: (NSString * ) deviceID -{ - if (_account) - { - NSURLComponents *components = [NSURLComponents componentsWithString:_account]; - components.queryItems = @[ - [NSURLQueryItem queryItemWithName:@"device_id" value:deviceID], - [NSURLQueryItem queryItemWithName:@"action" value:@"session_end"] - ]; - return components.URL; - } - else - { - return nil; - } -} - #pragma mark - NSCoding