mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Remove RedPhone code.
// FREEBIE
This commit is contained in:
parent
968066eff6
commit
36485c9461
5 changed files with 0 additions and 55 deletions
|
@ -80,9 +80,6 @@ static NSString *const TSRegistrationErrorUserInfoHTTPStatus = @"TSHTTPStatus";
|
|||
failure:(void (^)(NSError *error))failureHandler
|
||||
NS_SWIFT_NAME(registerForPushNotifications(pushToken:voipToken:success:failure:));
|
||||
|
||||
- (void)obtainRPRegistrationTokenWithSuccess:(void (^)(NSString *rpRegistrationToken))success
|
||||
failure:(void (^)(NSError *error))failureBlock;
|
||||
|
||||
#endif
|
||||
|
||||
+ (void)unregisterTextSecureWithSuccess:(void (^)())success failure:(void (^)(NSError *error))failureBlock;
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#import "SecurityUtils.h"
|
||||
#import "TSNetworkManager.h"
|
||||
#import "TSPreKeyManager.h"
|
||||
#import "TSRedPhoneTokenRequest.h"
|
||||
#import "TSSocketManager.h"
|
||||
#import "TSStorageManager+keyingMaterial.h"
|
||||
|
||||
|
@ -253,20 +252,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
return signalingKeyTokenPrint;
|
||||
}
|
||||
|
||||
- (void)obtainRPRegistrationTokenWithSuccess:(void (^)(NSString *rpRegistrationToken))success
|
||||
failure:(void (^)(NSError *error))failureBlock
|
||||
{
|
||||
[self.networkManager makeRequest:[[TSRedPhoneTokenRequest alloc] init]
|
||||
success:^(NSURLSessionDataTask *task, id responseObject) {
|
||||
DDLogInfo(@"%@ Successfully obtained Redphone token", self.tag);
|
||||
success([responseObject objectForKey:@"token"]);
|
||||
}
|
||||
failure:^(NSURLSessionDataTask *task, NSError *error) {
|
||||
DDLogError(@"%@ Failed to obtain Redphone token with error: %@", self.tag, error);
|
||||
failureBlock(error);
|
||||
}];
|
||||
}
|
||||
|
||||
+ (void)unregisterTextSecureWithSuccess:(void (^)())success failure:(void (^)(NSError *error))failureBlock
|
||||
{
|
||||
[[TSNetworkManager sharedManager] makeRequest:[[TSUnregisterAccountRequest alloc] init]
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
//
|
||||
// TSRedPhoneTokenRequest.h
|
||||
// Pods
|
||||
//
|
||||
// Created by Frederic Jacobs on 20/12/15.
|
||||
//
|
||||
//
|
||||
|
||||
#import "TSRequest.h"
|
||||
|
||||
@interface TSRedPhoneTokenRequest : TSRequest
|
||||
|
||||
@end
|
|
@ -1,23 +0,0 @@
|
|||
//
|
||||
// TSRedPhoneTokenRequest.m
|
||||
// Pods
|
||||
//
|
||||
// Created by Frederic Jacobs on 20/12/15.
|
||||
//
|
||||
//
|
||||
|
||||
#import "TSConstants.h"
|
||||
#import "TSRedPhoneTokenRequest.h"
|
||||
|
||||
@implementation TSRedPhoneTokenRequest
|
||||
|
||||
- (TSRequest *)init {
|
||||
self = [super initWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/token/", textSecureAccountsAPI]]];
|
||||
|
||||
self.HTTPMethod = @"GET";
|
||||
self.parameters = nil;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
|
@ -24,7 +24,6 @@
|
|||
if (self) {
|
||||
self.pinnedCertificates = [NSSet setWithArray:@[
|
||||
[self certificateDataForService:@"textsecure"],
|
||||
[self certificateDataForService:@"redphone"]
|
||||
]];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue