Skip to content

Commit 6ca8c81

Browse files
committed
Remove unused global for old serverless testing
1 parent 56b1ba1 commit 6ca8c81

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

FirebaseRemoteConfig/Sources/RCNConfigFetch.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ typedef void (^RCNConfigFetcherTestBlock)(RCNConfigFetcherCompletion completion)
5656
/// Add the ability to update NSURLSession's timeout after a session has already been created.
5757
- (void)recreateNetworkSession;
5858

59-
/// Sets the test block to mock the fetch response instead of performing the fetch task from server.
60-
+ (void)setGlobalTestBlock:(RCNConfigFetcherTestBlock)block;
61-
6259
NS_ASSUME_NONNULL_END
6360

6461
@end

FirebaseRemoteConfig/Sources/RCNFetch.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@
6767
// Deprecated error code previously from FirebaseCore
6868
static const NSInteger FIRErrorCodeConfigFailed = -114;
6969

70-
static RCNConfigFetcherTestBlock gGlobalTestBlock;
71-
7270
#pragma mark - RCNConfig
7371

7472
@implementation RCNConfigFetch {
@@ -516,23 +514,13 @@ - (void)fetchWithUserProperties:(NSDictionary *)userProperties
516514
return;
517515
}
518516

519-
if (gGlobalTestBlock) {
520-
gGlobalTestBlock(fetcherCompletion);
521-
return;
522-
}
523517
FIRLogDebug(kFIRLoggerRemoteConfig, @"I-RCN000061", @"Making remote config fetch.");
524518

525519
NSURLSessionDataTask *dataTask = [self URLSessionDataTaskWithContent:compressedContent
526520
completionHandler:fetcherCompletion];
527521
[dataTask resume];
528522
}
529523

530-
+ (void)setGlobalTestBlock:(RCNConfigFetcherTestBlock)block {
531-
FIRLogDebug(kFIRLoggerRemoteConfig, @"I-RCN000027",
532-
@"Set global test block for NSSessionFetcher, it will not fetch from server.");
533-
gGlobalTestBlock = [block copy];
534-
}
535-
536524
- (NSString *)constructServerURL {
537525
NSString *serverURLStr = [[NSString alloc] initWithString:kServerURLDomain];
538526
serverURLStr = [serverURLStr stringByAppendingString:kServerURLVersion];

0 commit comments

Comments
 (0)