From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 23 Feb 2025 04:21:09 +0000 (+0100)
Subject: Remove dead code / unneeded lines.
X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/booking/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D?a=commitdiff_plain;h=0e6f1291d7836feae0e2cac8e99ad22d3b47862c;p=ytplom

Remove dead code / unneeded lines.
---

diff --git a/src/templates/_base.tmpl b/src/templates/_base.tmpl
index eefe444..d7523f6 100644
--- a/src/templates/_base.tmpl
+++ b/src/templates/_base.tmpl
@@ -101,23 +101,6 @@ event_handlers.player = function(data) {
     document.getElementById("a_playing").href = data.title_digest ? `${PATH_PREFIX_FILE}${data.title_digest}` : PATH_PLAYLIST ;
 };
 
-
-// event_handlers.push(function(data) {  // update player state
-//     for (const [id, text] of [
-//             ["a_playing", data.title],
-//             ["player_state", data.is_running ? (data.is_playing ? "playing:" : "paused:") : "stopped" + (data.title ? ':' : '')],
-//             ["btn_play", data.is_playing ? "pause" : "play"]]) {
-//         document.getElementById(id).textContent = text;
-//     }
-//     const span_tags = document.getElementById("playing_tags");
-//     span_tags.innerHTML = "";
-//     father_tag_links(span_tags, data.title_tags);
-//     for (const btn of document.getElementsByClassName("btn_if_can_play")) {
-//         btn.disabled = !data.can_play;
-//     }
-//     document.getElementById("a_playing").href = data.title_digest ? `${PATH_PREFIX_FILE}${data.title_digest}` : PATH_PLAYLIST ;
-// })
-
 {% block script %}
 {% endblock %}
 
diff --git a/src/templates/playlist.tmpl b/src/templates/playlist.tmpl
index bea11b9..1933323 100644
--- a/src/templates/playlist.tmpl
+++ b/src/templates/playlist.tmpl
@@ -8,7 +8,6 @@ td.entry_control { width: 6em; }
 
 
 {% block script %}
-
 const CLS_PLAYLIST_ROW = 'playlist_row';
 events_params += 'playlist=1';
 var first_load = true;
@@ -48,7 +47,6 @@ event_handlers.playlist = function(data) {  // update playlist
         a_file.href = `${PATH_PREFIX_FILE}${file.digest}`;
     }
 };
-
 {% endblock %}