« get me outta code hell

client: miscellaneous eslint cleanup - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-16 09:08:25 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-16 09:08:52 -0400
commit4204b5d340203428bc97d1b76531c8939bb179bf (patch)
tree4efdc9cf659a596f4dc31ea7c6cf6a45487c77f9 /src/static
parent8c904d232eaa39307b0d52605fcef6e87c4f0635 (diff)
client: miscellaneous eslint cleanup
Diffstat (limited to 'src/static')
-rw-r--r--src/static/client3.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/static/client3.js b/src/static/client3.js
index 1ddccbb..892a23c 100644
--- a/src/static/client3.js
+++ b/src/static/client3.js
@@ -5,7 +5,6 @@
 // that cannot 8e done at static-site compile time, 8y its fundamentally
 // ephemeral nature.
 
-import {getColors} from '../util/colors.js';
 import {empty, stitchArrays} from '../util/sugar.js';
 import {filterMultipleArrays} from '../util/wiki-data.js';
 
@@ -39,6 +38,7 @@ function initInfo(key, description) {
 
 // Localiz8tion nonsense ----------------------------------
 
+/*
 const language = document.documentElement.getAttribute('lang');
 
 let list;
@@ -65,6 +65,7 @@ if (typeof Intl === 'object' && typeof Intl.ListFormat === 'function') {
     unit: arbitraryMock,
   };
 }
+*/
 
 // Miscellaneous helpers ----------------------------------
 
@@ -112,17 +113,24 @@ function pointIsOverAnyOf(elements) {
 
 // TODO: These should pro8a8ly access some shared urlSpec path. We'd need to
 // separ8te the tooling around that into common-shared code too.
+
+/*
 const getLinkHref = (type, directory) => rebase(`${type}/${directory}`);
+*/
+
 const openAlbum = (d) => rebase(`album/${d}`);
 const openTrack = (d) => rebase(`track/${d}`);
 const openArtist = (d) => rebase(`artist/${d}`);
 
 // TODO: This should also use urlSpec.
+
+/*
 function fetchData(type, directory) {
   return fetch(rebase(`${type}/${directory}/data.json`, 'rebaseData')).then(
     (res) => res.json()
   );
 }
+*/
 
 function dispatchInternalEvent(event, eventName, ...args) {
   const [infoName] =
@@ -2249,9 +2257,6 @@ function scrollAlbumCommentarySidebar() {
   const linkScrollTop =
     linkTopEdge - stickyPadding - 5;
 
-  const linkDistanceFromSection =
-    linkScrollTop - sectionTopEdge;
-
   const linkVisibleFromTopOfSection =
     linkBottomEdge - sectionTopEdge > sidebarViewportHeight;