Skip to content

Commit

Permalink
n-api: get rid of dead code
Browse files Browse the repository at this point in the history
remove code that is no longer used after
  n-api: create napi_env as a real structure
  nodejs#12195
  • Loading branch information
mhdawson committed Apr 13, 2017
1 parent a4b9c58 commit 4d55bd3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/node_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ static inline v8::PropertyAttribute V8PropertyAttributesFromDescriptor(
return static_cast<v8::PropertyAttribute>(attribute_flags);
}

v8::Isolate* V8IsolateFromJsEnv(napi_env e) {
return reinterpret_cast<v8::Isolate*>(e);
}

class HandleScopeWrapper {
public:
explicit HandleScopeWrapper(v8::Isolate* isolate) : scope(isolate) {}
Expand Down

0 comments on commit 4d55bd3

Please sign in to comment.