Browse Source

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

refactor: remove unused EventEmitter::GetWrapper(v8::Isolate*)
Charles Kerr 1 month ago
parent
commit
7d045dcddb
2 changed files with 0 additions and 9 deletions
  1. 0 8
      shell/common/gin_helper/wrappable.cc
  2. 0 1
      shell/common/gin_helper/wrappable_base.h

+ 0 - 8
shell/common/gin_helper/wrappable.cc

@@ -29,14 +29,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);

+ 0 - 1
shell/common/gin_helper/wrappable_base.h

@@ -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_; }