From b561342aa69f30fbd5e66927501def426ba8337e Mon Sep 17 00:00:00 2001 From: Ryan Wilson Date: Tue, 17 Oct 2017 16:47:08 -0400 Subject: Remove unused internal function. (#383) This isn't referenced anywhere internally or externally. --- Firebase/Core/FIRApp.m | 18 ------------------ Firebase/Core/Private/FIRAppInternal.h | 6 ------ 2 files changed, 24 deletions(-) diff --git a/Firebase/Core/FIRApp.m b/Firebase/Core/FIRApp.m index 718734b..97a6896 100644 --- a/Firebase/Core/FIRApp.m +++ b/Firebase/Core/FIRApp.m @@ -108,24 +108,6 @@ static FIRApp *sDefaultApp; [FIRApp configureDefaultAppWithOptions:options sendingNotifications:YES]; } -+ (void)configureWithoutSendingNotification { - FIROptions *options = [FIROptions defaultOptions]; - if (!options) { - [[NSNotificationCenter defaultCenter] - postNotificationName:kFIRAppDiagnosticsNotification - object:nil - userInfo:@{ - kFIRAppDiagnosticsConfigurationTypeKey : @(FIRConfigTypeCore), - kFIRAppDiagnosticsErrorKey : [FIRApp errorForMissingOptions] - }]; - [NSException raise:kFirebaseCoreErrorDomain - format: - @"Please check there is a valid " - @"GoogleService-Info.plist in the project."]; - } - [FIRApp configureDefaultAppWithOptions:options sendingNotifications:NO]; -} - + (void)configureDefaultAppWithOptions:(FIROptions *)options sendingNotifications:(BOOL)sendNotifications { if (sDefaultApp) { diff --git a/Firebase/Core/Private/FIRAppInternal.h b/Firebase/Core/Private/FIRAppInternal.h index 73f44ea..2a98268 100644 --- a/Firebase/Core/Private/FIRAppInternal.h +++ b/Firebase/Core/Private/FIRAppInternal.h @@ -152,12 +152,6 @@ typedef NSString *_Nullable (^FIRAppGetUIDImplementation)(void); */ - (void)getTokenForcingRefresh:(BOOL)forceRefresh withCallback:(FIRTokenCallback)callback; -/** - * Exposed for use by the Google pod. Configures the default app without sending notifications to - * other SDKs. Otherwise, behaves exactly like +configure. - */ -+ (void)configureWithoutSendingNotification; - /** * Expose the UID of the current user for Firestore. */ -- cgit v1.2.3