Skip to content

Commit

Permalink
Removed an unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Nov 16, 2021
1 parent 1f6499f commit c2e8fad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions src/hermes/hermes_class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,6 @@ inline void copyProperty(JsiEnv env, const jsi::Object& from, const jsi::Object&

inline constexpr const char g_internal_field[] = "__Realm_internal";

#if 0
inline jsi::Symbol ExternalSymbol;
jsi::Symbol ext = jsi::Symbol::New(env, "_external");
ExternalSymbol = hermes::Protected<jsi::Symbol>(env, ext);
ExternalSymbol.SuppressDestruct();
#endif

template<typename T>
using ClassDefinition = js::ClassDefinition<js::hermes::Types, T>;

Expand Down
6 changes: 0 additions & 6 deletions src/hermes/hermes_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ class JsiEnv {
return *m_rt;
}

inline JsiFunc globalType(const char* name);

JsiVal operator()(const jsi::Value&) const;
JsiVal operator()(jsi::Value&&) const;
JsiObj operator()(const jsi::Object&) const;
Expand Down Expand Up @@ -163,10 +161,6 @@ inline JsiString JsiEnv::operator()(jsi::String&& val) const { return {*this, st
inline JsiFunc JsiEnv::operator()(const jsi::Function& val) const { return {*this, val}; }
inline JsiFunc JsiEnv::operator()(jsi::Function&& val) const { return {*this, std::move(val)}; }

inline JsiFunc JsiEnv::globalType(const char* name) {
return (*this)(get().global().getPropertyAsFunction(*this, name));
}

inline JsiVal JsiEnv::null() const {
return {*this, jsi::Value::null()};
}
Expand Down

0 comments on commit c2e8fad

Please sign in to comment.