diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2017-11-15 10:01:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 10:01:05 -0800 |
commit | b6339fa2c55f8a803b8ae68c9740fa933c7ee007 (patch) | |
tree | 1079f7c3eaacad15cd6c9f1cb6cfcc6cbb9eb42b /Firebase/Messaging | |
parent | a03dfd3c887f57c12cfa41478a3201846459afde (diff) |
Remove unused code from Messaging (#458)
Diffstat (limited to 'Firebase/Messaging')
-rw-r--r-- | Firebase/Messaging/FIRMessagingDataMessageManager.m | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Firebase/Messaging/FIRMessagingDataMessageManager.m b/Firebase/Messaging/FIRMessagingDataMessageManager.m index 2433bd4..58dae87 100644 --- a/Firebase/Messaging/FIRMessagingDataMessageManager.m +++ b/Firebase/Messaging/FIRMessagingDataMessageManager.m @@ -31,14 +31,10 @@ #import "FIRMessagingUtilities.h" #import "NSError+FIRMessaging.h" -// The Notification used to send InstanceID messages that FIRMessaging receives. -static NSString *const NOTIFICATION_IID_MESSAGE = @"com.google.gcm/notification/iid"; - static const int kMaxAppDataSizeDefault = 4 * 1024; // 4k static const int kMinDelaySeconds = 1; // 1 second static const int kMaxDelaySeconds = 60 * 60; // 1 hour -static NSString *const kFromForInstanceIDMessages = @"google.com/iid"; static NSString *const kFromForFIRMessagingMessages = @"mcs.android.com"; static NSString *const kGSFMessageCategory = @"com.google.android.gsf.gtalkservice"; // TODO: Update Gcm to FIRMessaging in the constants below @@ -126,19 +122,6 @@ typedef NS_ENUM(int8_t, UpstreamForceReconnect) { } else if ([kFromForFIRMessagingMessages isEqualToString:from]) { [self handleMCSDataMessage:dataMessage]; return nil; - } else if ([kFromForInstanceIDMessages isEqualToString:from]) { - // send message to InstanceID library. - NSMutableDictionary *message = [NSMutableDictionary dictionary]; - for (GtalkAppData *item in dataMessage.appDataArray) { - _FIRMessagingDevAssert(item.key && item.value, @"Invalid app data item"); - if (item.key && item.value) { - message[item.key] = item.value; - } - } - - [[NSNotificationCenter defaultCenter] postNotificationName:NOTIFICATION_IID_MESSAGE - object:message]; - return nil; } return [self parseDataMessage:dataMessage]; |