From c2e8fad2232ba3407bd45f265ba285d63151c921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Mon, 4 Oct 2021 09:34:40 +0200 Subject: [PATCH] Removed an unused method --- src/hermes/hermes_class.hpp | 7 ------- src/hermes/hermes_types.hpp | 6 ------ 2 files changed, 13 deletions(-) diff --git a/src/hermes/hermes_class.hpp b/src/hermes/hermes_class.hpp index 2a3c52b96a1..bdf59deb5fa 100644 --- a/src/hermes/hermes_class.hpp +++ b/src/hermes/hermes_class.hpp @@ -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(env, ext); -ExternalSymbol.SuppressDestruct(); -#endif - template using ClassDefinition = js::ClassDefinition; diff --git a/src/hermes/hermes_types.hpp b/src/hermes/hermes_types.hpp index 6ab9123b693..647eb31466c 100644 --- a/src/hermes/hermes_types.hpp +++ b/src/hermes/hermes_types.hpp @@ -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; @@ -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()}; }