зеркало из https://github.com/electron/electron.git
chore: remove unused WrappableBase::AfterInit() (#42974)
last caller removed in 6159066c
(#22916)
This commit is contained in:
Родитель
c72a714dd5
Коммит
8c8a7709e6
|
@ -56,8 +56,6 @@ void WrappableBase::InitWith(v8::Isolate* isolate,
|
|||
v8::Local<v8::Function> init;
|
||||
if (Dictionary(isolate, wrapper).Get("_init", &init))
|
||||
init->Call(isolate->GetCurrentContext(), wrapper, 0, nullptr).IsEmpty();
|
||||
|
||||
AfterInit(isolate);
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
@ -45,9 +45,6 @@ class WrappableBase {
|
|||
v8::Isolate* isolate() const { return isolate_; }
|
||||
|
||||
protected:
|
||||
// Called after the "_init" method gets called in JavaScript.
|
||||
virtual void AfterInit(v8::Isolate* isolate) {}
|
||||
|
||||
// Bind the C++ class to the JS wrapper.
|
||||
// This method should only be called by classes using Constructor.
|
||||
virtual void InitWith(v8::Isolate* isolate, v8::Local<v8::Object> wrapper);
|
||||
|
|
Загрузка…
Ссылка в новой задаче