Remove gating code for HMR on iOS

Reviewed By: javache

Differential Revision: D2977197

fb-gh-sync-id: 001447ad0b0275f5de6f6454aa8cd0b1c34ce3d8
shipit-source-id: 001447ad0b0275f5de6f6454aa8cd0b1c34ce3d8
This commit is contained in:
Martín Bigio 2016-02-26 09:35:58 -08:00 committed by Facebook Github Bot 8
parent b2b41da37f
commit 4b98511a3e
2 changed files with 1 additions and 9 deletions

View File

@ -47,10 +47,4 @@ typedef void (^RCTSourceLoadBlock)(NSError *error, NSData *source);
- (void)loadSourceForBridge:(RCTBridge *)bridge
withBlock:(RCTSourceLoadBlock)loadCallback;
/**
* Indicates whether Hot Loading is supported or not.
* Note: this method will be removed soon, once Hot Loading is supported on OSS.
*/
- (BOOL)bridgeSupportsHotLoading:(RCTBridge *)bridge;
@end

View File

@ -581,9 +581,7 @@ RCT_EXPORT_METHOD(reload)
- (BOOL)hotLoadingAvailable
{
return !_bridge.bundleURL.fileURL // Only works when running from server
&& [_bridge.delegate respondsToSelector:@selector(bridgeSupportsHotLoading:)]
&& [_bridge.delegate bridgeSupportsHotLoading:_bridge];
return !_bridge.bundleURL.fileURL; // Only works when running from server
}
- (void)setHotLoadingEnabled:(BOOL)enabled