Remove RedPhone code.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-03-22 15:13:14 -04:00
parent 968066eff6
commit 36485c9461
5 changed files with 0 additions and 55 deletions

View file

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

View file

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

View file

@ -1,13 +0,0 @@
//
// TSRedPhoneTokenRequest.h
// Pods
//
// Created by Frederic Jacobs on 20/12/15.
//
//
#import "TSRequest.h"
@interface TSRedPhoneTokenRequest : TSRequest
@end

View file

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

View file

@ -24,7 +24,6 @@
if (self) {
self.pinnedCertificates = [NSSet setWithArray:@[
[self certificateDataForService:@"textsecure"],
[self certificateDataForService:@"redphone"]
]];
}