Skip to content

Commit

Permalink
Dead code removal
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Mar 21, 2022
1 parent 232ad1c commit 0effcd9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/node/node_class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1411,12 +1411,6 @@ Napi::Value ObjectWrap<ClassType>::constructor_callback(const Napi::CallbackInfo
return scope.Escape(env.Null()); // return a value to comply with Napi::FunctionCallback
}
else {
// XXX: Remove this now that we declare a constructor for the RealmObjectClass
bool isRealmObjectClass = std::is_same<ClassType, realm::js::RealmObjectClass<realm::node::Types>>::value;
if (isRealmObjectClass) {
return scope.Escape(env.Null()); // return a value to comply with Napi::FunctionCallback
}

throw Napi::Error::New(env, "Illegal constructor");
}
}
Expand Down

0 comments on commit 0effcd9

Please sign in to comment.