From 8cfb37351d94cbb39a43b2979d0b23324f665774 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Sun, 16 Jul 2017 14:40:13 -0500 Subject: [PATCH] Remove unused variables --- background/background.js | 2 +- edit/edit.js | 4 ++-- manage/fileSaveLoad.js | 6 +++--- manage/manage.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/background/background.js b/background/background.js index 3b4f1aa7..13d12e2f 100644 --- a/background/background.js +++ b/background/background.js @@ -26,7 +26,7 @@ chrome.webNavigation.onHistoryStateUpdated.addListener(data => chrome.webNavigation.onReferenceFragmentUpdated.addListener(data => webNavigationListener('styleReplaceAll', data)); -chrome.tabs.onAttached.addListener((tabId, data) => { +chrome.tabs.onAttached.addListener(tabId => { // When an edit page gets attached or detached, remember its state // so we can do the same to the next one to open. chrome.tabs.get(tabId, tab => { diff --git a/edit/edit.js b/edit/edit.js index 8afb891e..d7edd6cc 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -831,8 +831,8 @@ function setupGlobalSearch() { return; } // hide the first two dialogs (replace, replaceWith) - cm.openDialog = (tmpl, callback, opt) => { - cm.openDialog = (tmpl, callback, opt) => { + cm.openDialog = (tmpl, callback) => { + cm.openDialog = (tmpl, callback) => { cm.openDialog = originalOpenDialog; if (all) { callback(replacement); diff --git a/manage/fileSaveLoad.js b/manage/fileSaveLoad.js index ec54517d..4a8397ec 100644 --- a/manage/fileSaveLoad.js +++ b/manage/fileSaveLoad.js @@ -195,7 +195,7 @@ function importFromString(jsonString) { contents: report.length ? report : t('importReportUnchanged'), buttons: [t('confirmOK'), numChanged && t('undo')], onshow: bindClick, - }).then(({button, enter, esc}) => { + }).then(({button}) => { if (button === 1) { undo(); } @@ -241,7 +241,7 @@ function importFromString(jsonString) { } } - function bindClick(box) { + function bindClick() { const highlightElement = event => { const styleElement = $('#style-' + event.target.dataset.id); if (styleElement) { @@ -367,7 +367,7 @@ Object.assign(document.body, { this.classList.remove('fadeout'); } }, - ondragend(event) { + ondragend() { animateElement(this, {className: 'fadeout', removeExtraClasses: ['dropzone']}).then(() => { this.style.animationDuration = ''; }); diff --git a/manage/manage.js b/manage/manage.js index 124c7d72..3d11308a 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -360,7 +360,7 @@ Object.assign(handleEvent, { className: 'danger center', buttons: [t('confirmDelete'), t('confirmCancel')], }) - .then(({button, enter, esc}) => { + .then(({button, enter}) => { if (button === 0 || enter) { deleteStyleSafe({id}); }