mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: remove unused v8::Isolate* arg from GlobalShortcut constructor (#45796)
refactor: remove unused isolate arg from GlobalShortcut constructor
has not been used since f1a0d5e811 (#22755)
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:
@@ -46,7 +46,7 @@ namespace electron::api {
|
||||
|
||||
gin::WrapperInfo GlobalShortcut::kWrapperInfo = {gin::kEmbedderNativeGin};
|
||||
|
||||
GlobalShortcut::GlobalShortcut(v8::Isolate* isolate) {}
|
||||
GlobalShortcut::GlobalShortcut() {}
|
||||
|
||||
GlobalShortcut::~GlobalShortcut() {
|
||||
UnregisterAll();
|
||||
@@ -151,7 +151,7 @@ void GlobalShortcut::UnregisterAll() {
|
||||
|
||||
// static
|
||||
gin::Handle<GlobalShortcut> GlobalShortcut::Create(v8::Isolate* isolate) {
|
||||
return gin::CreateHandle(isolate, new GlobalShortcut(isolate));
|
||||
return gin::CreateHandle(isolate, new GlobalShortcut());
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
@@ -37,7 +37,7 @@ class GlobalShortcut final
|
||||
GlobalShortcut& operator=(const GlobalShortcut&) = delete;
|
||||
|
||||
protected:
|
||||
explicit GlobalShortcut(v8::Isolate* isolate);
|
||||
GlobalShortcut();
|
||||
~GlobalShortcut() override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user