From f133c3e67a9ff969677f73b72267c34968c74190 Mon Sep 17 00:00:00 2001 From: eight Date: Sun, 14 Oct 2018 16:18:14 +0800 Subject: [PATCH] Fix: drop unused lastActive --- edit/sections-editor-section.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/edit/sections-editor-section.js b/edit/sections-editor-section.js index 2c566f87..572fc6e0 100644 --- a/edit/sections-editor-section.js +++ b/edit/sections-editor-section.js @@ -116,8 +116,6 @@ function createSection({ linter.enableForEditor(cm); - let lastActive = 0; - const section = { id: sectionId, el, @@ -131,7 +129,6 @@ function createSection({ isRemoved: () => removed, onChange, off, - getLastActive: () => lastActive, appliesTo }; return section; @@ -197,10 +194,6 @@ function createSection({ if (!FIREFOX) { cm.on('mousedown', (cm, event) => toggleContextMenuDelete.call(cm, event)); } - cm.on('focus', () => { - lastActive = Date.now(); - }); - cm.display.wrapper.addEventListener('keydown', event => handleKeydown(cm, event), true);