refactor: remove unused v8::Isolate*
arg from GlobalShortcut
constructor (#45773)
refactor: remove unused isolate arg from GlobalShortcut constructor
has not been used since f1a0d5e811
(#22755)
This commit is contained in:
parent
01554f39a8
commit
0de1e8e610
2 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ namespace electron::api {
|
||||||
|
|
||||||
gin::WrapperInfo GlobalShortcut::kWrapperInfo = {gin::kEmbedderNativeGin};
|
gin::WrapperInfo GlobalShortcut::kWrapperInfo = {gin::kEmbedderNativeGin};
|
||||||
|
|
||||||
GlobalShortcut::GlobalShortcut(v8::Isolate* isolate) {}
|
GlobalShortcut::GlobalShortcut() {}
|
||||||
|
|
||||||
GlobalShortcut::~GlobalShortcut() {
|
GlobalShortcut::~GlobalShortcut() {
|
||||||
UnregisterAll();
|
UnregisterAll();
|
||||||
|
@ -216,7 +216,7 @@ void GlobalShortcut::UnregisterAll() {
|
||||||
|
|
||||||
// static
|
// static
|
||||||
gin::Handle<GlobalShortcut> GlobalShortcut::Create(v8::Isolate* isolate) {
|
gin::Handle<GlobalShortcut> GlobalShortcut::Create(v8::Isolate* isolate) {
|
||||||
return gin::CreateHandle(isolate, new GlobalShortcut(isolate));
|
return gin::CreateHandle(isolate, new GlobalShortcut());
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|
|
@ -37,7 +37,7 @@ class GlobalShortcut final : private ui::GlobalAcceleratorListener::Observer,
|
||||||
GlobalShortcut& operator=(const GlobalShortcut&) = delete;
|
GlobalShortcut& operator=(const GlobalShortcut&) = delete;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit GlobalShortcut(v8::Isolate* isolate);
|
GlobalShortcut();
|
||||||
~GlobalShortcut() override;
|
~GlobalShortcut() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue