Skip to content

Commit

Permalink
Revert "helper function to generate the logout url"
Browse files Browse the repository at this point in the history
This reverts commit 5fc236c.
  • Loading branch information
Velin92 committed Aug 25, 2023
1 parent 5fc236c commit e03fa9d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 0 additions & 17 deletions MatrixSDK/JSONModels/AutoDiscovery/MXWellKnownAuthentication.m
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e03fa9d

Please sign in to comment.