From d32fcab184671cbb8a75c1f2b6967b8a1ec28400 Mon Sep 17 00:00:00 2001 From: Frodo161 Date: Wed, 24 Jan 2024 11:34:42 +0100 Subject: [PATCH] Remove unused variables resp. add underscore --- app/assets/javascripts/thyme/components/seek_bar.js | 2 +- app/assets/javascripts/thyme/thyme_editor.js | 1 - app/assets/javascripts/thyme/thyme_player.js | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/thyme/components/seek_bar.js b/app/assets/javascripts/thyme/components/seek_bar.js index 477cae178..805d632b1 100644 --- a/app/assets/javascripts/thyme/components/seek_bar.js +++ b/app/assets/javascripts/thyme/components/seek_bar.js @@ -61,7 +61,7 @@ class SeekBar extends Component { addChapterTooltips() { const element = this.element; - element.addEventListener("mousemove", function (evt) { + element.addEventListener("mousemove", function (_evt) { const previous = thymeAttributes.chapterManager.previousChapterStart(); const info = $("#c-" + $.escapeSelector(previous)).text().split(":")[0]; element.setAttribute("title", info); diff --git a/app/assets/javascripts/thyme/thyme_editor.js b/app/assets/javascripts/thyme/thyme_editor.js index 43c0721e2..a86f1c371 100644 --- a/app/assets/javascripts/thyme/thyme_editor.js +++ b/app/assets/javascripts/thyme/thyme_editor.js @@ -9,7 +9,6 @@ $(document).on("turbolinks:load", function () { } // initialize attributes const video = document.getElementById("video-edit"); - const mediumId = thymeEdit.dataset.medium; thymeAttributes.video = video; thymeAttributes.mediumId = thymeEdit.dataset.medium; diff --git a/app/assets/javascripts/thyme/thyme_player.js b/app/assets/javascripts/thyme/thyme_player.js index c1b99705a..6ebecf754 100644 --- a/app/assets/javascripts/thyme/thyme_player.js +++ b/app/assets/javascripts/thyme/thyme_player.js @@ -65,11 +65,11 @@ $(document).on("turbolinks:load", function () { const annotationArea = new AnnotationArea(true, colorFunc, onClose, isValid); thymeAttributes.annotationArea = annotationArea; - function strokeColorFunc(annotation) { + function strokeColorFunc(_annotation) { return "black"; } - function sizeFunc(annotation) { + function sizeFunc(_annotation) { return false; }