« get me outta code hell

upd8: remove dead missing-tag-references check - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-19 11:14:06 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-19 11:49:17 -0300
commit3b601adf3945a487f4aa07eb8c0f62161460345a (patch)
treed4ccfe946ca0a5a2a42a3b41805f2a6bda9d00e7
parent77d9f4b311dcc70e765f2bc5f3cdec508ca2bbc6 (diff)
upd8: remove dead missing-tag-references check
-rwxr-xr-xsrc/upd8.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 51957225..4bbdb95e 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -60,7 +60,6 @@ import {
   WIKI_INFO_FILE,
 } from './data/yaml.js';
 
-import find from './util/find.js';
 import {findFiles} from './util/io.js';
 import link from './util/link.js';
 import {isMain, traverse} from './util/node-utils.js';
@@ -646,25 +645,6 @@ async function main() {
 
   logInfo`Loaded language strings: ${Object.keys(languages).join(', ')}`;
 
-  {
-    const tagRefs = new Set(
-      [...wikiData.trackData, ...wikiData.albumData]
-        .flatMap((thing) => thing.artTagsByRef ?? []));
-
-    for (const ref of tagRefs) {
-      if (find.artTag(ref, wikiData.artTagData)) {
-        tagRefs.delete(ref);
-      }
-    }
-
-    if (tagRefs.size) {
-      for (const ref of Array.from(tagRefs).sort()) {
-        console.log(`\x1b[33;1m- Missing tag: "${ref}"\x1b[0m`);
-      }
-      return;
-    }
-  }
-
   const urls = generateURLs(urlSpec);
 
   await verifyImagePaths(mediaPath, {urls, wikiData});