refactor: remove unused gin_helper::WrappableBase::GetWrapper(v8::Isolate*) (#45809)

refactor: remove unused EventEmitter::GetWrapper(v8::Isolate*)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot] 2025-02-25 22:51:17 -06:00 committed by GitHub
parent 3225fd9af5
commit ff3793aa71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 9 deletions

View file

@ -30,14 +30,6 @@ v8::Local<v8::Object> WrappableBase::GetWrapper() const {
return {};
}
v8::MaybeLocal<v8::Object> WrappableBase::GetWrapper(
v8::Isolate* isolate) const {
if (!wrapper_.IsEmpty())
return {v8::Local<v8::Object>::New(isolate, wrapper_)};
else
return {};
}
void WrappableBase::InitWithArgs(gin::Arguments* args) {
v8::Local<v8::Object> holder;
args->GetHolder(&holder);

View file

@ -39,7 +39,6 @@ class WrappableBase {
// Retrieve the v8 wrapper object corresponding to this object.
v8::Local<v8::Object> GetWrapper() const;
v8::MaybeLocal<v8::Object> GetWrapper(v8::Isolate* isolate) const;
// Returns the Isolate this object is created in.
v8::Isolate* isolate() const { return isolate_; }