Skip to content

Commit 4b70358

Browse files
Remove unused files in IID (#4881)
1 parent e70f1ed commit 4b70358

File tree

4 files changed

+1
-288
lines changed

4 files changed

+1
-288
lines changed

Firebase/InstanceID/FIRIMessageCode.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,5 @@ typedef NS_ENUM(NSInteger, FIRInstanceIDMessageCode) {
143143
kFIRInstanceIDKeychainCreateKeyPairError = 23003,
144144
kFIRInstanceIDKeychainUpdateItemError = 23004,
145145

146-
// FIRInstanceIDStringEncoding.m
147-
kFIRInstanceIDStringEncodingBufferUnderflow = 24000,
148-
kFIRInstanceIDStringEncodingBufferOverflow = 24001,
149-
146+
// DO NOT USE 24000, 24001
150147
};

Firebase/InstanceID/FIRInstanceIDStringEncoding.h

Lines changed: 0 additions & 66 deletions
This file was deleted.

Firebase/InstanceID/FIRInstanceIDStringEncoding.m

Lines changed: 0 additions & 208 deletions
This file was deleted.

Firebase/Messaging/FIRMessagingTopicOperation.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
#import "Firebase/Messaging/FIRMessagingUtilities.h"
2424
#import "Firebase/Messaging/NSError+FIRMessaging.h"
2525

26-
#define DEBUG_LOG_SUBSCRIPTION_OPERATION_DURATIONS 0
27-
2826
static NSString *const kFIRMessagingSubscribeServerHost =
2927
@"https://iid.googleapis.com/iid/register";
3028

@@ -194,10 +192,6 @@ - (void)performSubscriptionChange {
194192
request.HTTPBody = [content dataUsingEncoding:NSUTF8StringEncoding];
195193
[request setHTTPMethod:@"POST"];
196194

197-
#if DEBUG_LOG_SUBSCRIPTION_OPERATION_DURATIONS
198-
NSDate *start = [NSDate date];
199-
#endif
200-
201195
FIRMessaging_WEAKIFY(self) void (^requestHandler)(NSData *, NSURLResponse *, NSError *) =
202196
^(NSData *data, NSURLResponse *URLResponse, NSError *error) {
203197
FIRMessaging_STRONGIFY(self) if (error) {
@@ -228,10 +222,6 @@ - (void)performSubscriptionChange {
228222
[self finishWithError:[NSError errorWithFCMErrorCode:kFIRMessagingErrorCodeUnknown]];
229223
return;
230224
}
231-
#if DEBUG_LOG_SUBSCRIPTION_OPERATION_DURATIONS
232-
NSTimeInterval duration = -[start timeIntervalSinceNow];
233-
FIRMessagingLoggerDebug(@"%@ change took %.2fs", self.topic, duration);
234-
#endif
235225
[self finishWithError:nil];
236226
};
237227

0 commit comments

Comments
 (0)