Removed calls to RCTBundleURLProvider setDefaults

Reviewed By: javache

Differential Revision: D3534799

fbshipit-source-id: 0c784cd9a993c6379e49087906ebf670ddd4f8cd
This commit is contained in:
Nathan Azaria 2016-07-11 02:47:47 -07:00 committed by Facebook Github Bot 5
parent 0b773c41ac
commit defc34a28b
2 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,6 @@ static NSURL *ipBundleURL()
RCTSwapInstanceMethods([NSBundle class], RCTSwapInstanceMethods([NSBundle class],
@selector(URLForResource:withExtension:), @selector(URLForResource:withExtension:),
@selector(RCT_URLForResource:withExtension:)); @selector(RCT_URLForResource:withExtension:));
[[RCTBundleURLProvider sharedSettings] setDefaults];
} }
- (void)tearDown - (void)tearDown

View File

@ -58,7 +58,6 @@ static NSString *ipGuess;
- (void)setDefaults - (void)setDefaults
{ {
[[NSUserDefaults standardUserDefaults] registerDefaults:[self defaults]]; [[NSUserDefaults standardUserDefaults] registerDefaults:[self defaults]];
[self settingsUpdated];
} }
- (void)resetToDefaults - (void)resetToDefaults
@ -67,6 +66,7 @@ static NSString *ipGuess;
[[NSUserDefaults standardUserDefaults] removeObjectForKey:key]; [[NSUserDefaults standardUserDefaults] removeObjectForKey:key];
} }
[self setDefaults]; [self setDefaults];
[self settingsUpdated];
} }
- (BOOL)isPackagerRunning:(NSString *)host - (BOOL)isPackagerRunning:(NSString *)host