« get me outta code hell

remove unused original code - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-04-15 15:53:02 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-04-15 15:53:02 -0300
commit3c87ee4888f936181ac1e74392e44ce02c499e00 (patch)
tree7ab1781dc0ac7a68c2157ed36c897533e3b876c8
parente3baf8b7e3834b27a6ea6516e43d797570ff4c92 (diff)
remove unused original code
-rwxr-xr-xupd8.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/upd8.js b/upd8.js
index 72031b80..7ec6b55c 100755
--- a/upd8.js
+++ b/upd8.js
@@ -961,17 +961,6 @@ const replacerSpec = {
     }
     if (error) process.exit();
 
-    const categoryPart = Object.keys(replacerSpec).join('|');
-    // transformInline.regexp = new RegExp(String.raw`(?<!\\)\[\[((${categoryPart}):)?(.+?)((?<! )#.+?)?(\|(.+?))?\]\]`, 'g');
-    transformInline.regexp = makeExtendedRegExp(String.raw`
-      (?<!\\)\[\[             // Opening [[ (only match unescaped).
-      ((${categoryPart}):)?   // Key of which replacer to use (track, album, etc). Defaults to track.
-      (.+?)                   // Argument for search function (or value function, if none provided).
-      ((?<! )#.+?)?           // Hash part for links, except when past a space (e.g. "Track #1").
-      (\|(.+?))?              // Label part, to replace default text or provide when there is none.
-      \]\]                    // Closing ]].
-    `, 'g');
-
     // Syntax literals.
     const tagBeginning = '[[';
     const tagEnding = ']]';