From f413dc9a1b944fd653c3bc089516c3363fb57857 Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Wed, 18 Nov 2015 11:54:42 +0000 Subject: Remove unused JavaScript variables (no-unused-vars) Quoting ESLint: > Variables that are declared and not used anywhere in the code are most > likely an error due to incomplete refactoring. Such variables take up > space in the code and can lead to confusion by readers. This commit removes them. Fixes ESLint no-unused-vars errors using airbnb/legacy config. Suggested-by: marc --- js/cheesesteak.js | 2 +- js/pomf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/cheesesteak.js b/js/cheesesteak.js index ba65e48..905c5f3 100644 --- a/js/cheesesteak.js +++ b/js/cheesesteak.js @@ -160,7 +160,7 @@ xhr.open(opts.method, this.url, true); - function initProgressBar(evt) { + function initProgressBar() { for (i = 0; i < len; i++) { files[i].uploadedSize = 0; } diff --git a/js/pomf.js b/js/pomf.js index a8cd248..f1b23f3 100644 --- a/js/pomf.js +++ b/js/pomf.js @@ -125,7 +125,7 @@ $(function() { } up.on('uploadprogress', function(evt, files) { - eachRow(files, function(row, file, files) { + eachRow(files, function(row, file) { $('.progress-inner', row).width((file.percentUploaded * 100) + '%'); }); -- cgit v1.2.3