Removed calls to RCTBundleURLProvider setDefaults
Reviewed By: javache Differential Revision: D3534799 fbshipit-source-id: 0c784cd9a993c6379e49087906ebf670ddd4f8cd
This commit is contained in:
parent
0b773c41ac
commit
defc34a28b
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue