Skip to content

Commit

Permalink
Remove -[RCTJSExecutor errorForJSError:]
Browse files Browse the repository at this point in the history
Reviewed By: javache

Differential Revision: D3814718

fbshipit-source-id: 9b8c91cb81d77fda4959df26806d54c9b7be42a0
  • Loading branch information
Indragie Karunaratne authored and Facebook Github Bot 0 committed Sep 3, 2016
1 parent 3d1b79c commit 31c8e20
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions React/Executors/RCTJSCExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ RCT_EXTERN NSString *const RCTJavaScriptContextCreatedNotification;
*/
- (instancetype)initWithUseCustomJSCLibrary:(BOOL)useCustomJSCLibrary;

/**
* Create a NSError from a JSError object.
*
* If available, the error's userInfo property will contain the JS stacktrace under
* the RCTJSStackTraceKey key.
*/
- (NSError *)errorForJSError:(JSValue *)jsError;

/**
* @experimental
* Pass a RCTJSContextProvider object to use an NSThread/JSContext pair that have already been created.
Expand Down
5 changes: 0 additions & 5 deletions React/Executors/RCTJSCExecutor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,6 @@ @implementation RCTJSCExecutor
return [NSError errorWithDomain:RCTErrorDomain code:1 userInfo:errorInfo];
}

- (NSError *)errorForJSError:(JSValue *)jsError
{
return RCTNSErrorFromJSError(_jscWrapper, jsError.context.JSGlobalContextRef, jsError.JSValueRef);
}

#if RCT_DEV

static void RCTInstallJSCProfiler(RCTBridge *bridge, JSContextRef context)
Expand Down

0 comments on commit 31c8e20

Please sign in to comment.