8000 Cleanup unused code. · arduino/lab-micropython-editor@9a05dd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a05dd9

Browse files
committed
Cleanup unused code.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 838aa6f commit 9a05dd9

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

backend/shortcuts.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,8 @@ const shortcuts = {
3232
// Shortcuts
3333
}
3434

35-
function shortcutAction(key, win) {
36-
console.log("key:", key)
37-
win.send('shortcut-cmd', key);
38-
}
39-
40-
function registerShortcuts (win) {
41-
console.log("registering shortcuts")
42-
win.send('ignore-shortcuts', false)
43-
}
44-
function unregisterShortcuts(win) {
45-
console.log("unregistering shortcuts")
46-
// globalShortcut.unregisterAll()
47-
win.send('ignore-shortcuts', true)
48-
}
49-
5035
function disableShortcuts (win, value) {
51-
console.log("registering shortcuts")
36+
console.log(value ? 'disabling' : 'enabling', 'shortcuts')
5237
win.send('ignore-shortcuts', value)
5338
}
5439

preload.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ const Window = {
6565
},
6666
onDisableShortcuts: (callback, value) => {
6767
ipcRenderer.on('ignore-shortcuts', (e, value) => {
68-
console.log("ipcRenderer ignore-shortcuts", value)
6968
callback(value);
7069
})
7170
},

ui/arduino/store.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,6 @@ async function store(state, emitter) {
14351435
})
14361436

14371437
win.onDisableShortcuts((disable) => {
1438-
console.log('state.shortcutsDisabled', disable)
14391438
state.shortcutsDisabled = disable
14401439
}),
14411440

ui/arduino/views/components/elements/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function Button(args) {
44
size = '',
55
square = false,
66
icon = 'connect.svg',
7-
onClick = (e) => {console.log(e); false},
7+
onClick = (e) => {},
88
disabled = false,
99
active = false,
1010
tooltip,

0 commit comments

Comments
 (0)
0