From 3b601adf3945a487f4aa07eb8c0f62161460345a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 19 Aug 2023 11:14:06 -0300 Subject: upd8: remove dead missing-tag-references check --- src/upd8.js | 20 -------------------- 1 file changed, 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}); -- cgit 1.3.0-6-gf8a5