移除无用代码

This commit is contained in:
lyswhut
2020-06-26 01:12:08 +08:00
parent b02d32929c
commit ffc3300fe4
6 changed files with 4 additions and 15 deletions
-1
View File
@@ -22,7 +22,6 @@ exports.winLyric = {
name: 'winLyric',
create: 'create',
close: 'close',
inited: 'inited',
}
exports.hotKey = {
-4
View File
@@ -10,10 +10,6 @@ class WinLyric extends EventEmitter {
close() {
this.emit(WIN_LYRIC_EVENT_NAME.close)
}
inited() {
this.emit(WIN_LYRIC_EVENT_NAME.inited)
}
}
module.exports = WinLyric
-1
View File
@@ -38,7 +38,6 @@ global.lx_event.common.on(COMMON_EVENT_NAME.config, name => {
if (WIN_LYRIC_EVENT_NAME.name === name) return
setLrcConfig(false)
})
// global.lx_event.winLyric.on(WIN_LYRIC_EVENT_NAME.inited, () => setLrcConfig(true))
global.lx_event.mainWindow.on(MAIN_WINDOW_EVENT_NAME.setLyricInfo, info => {
if (!global.modules.lyricWindow) return