« get me outta code hell

remove output-specific getPagePaths util - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-01-10 19:32:22 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-01-10 19:32:22 -0400
commit592acc152dc68e0f24300c090c9eabb9f21cef6b (patch)
tree9f0c4033f4e18743659b251013b0bec14cdd87fe /src/util
parentbfc26e34ece45983ecd96e44fe5a54a3e1d9adca (diff)
remove output-specific getPagePaths util
Diffstat (limited to 'src/util')
-rw-r--r--src/util/urls.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/util/urls.js b/src/util/urls.js
index 4672c6a2..a74e0dfb 100644
--- a/src/util/urls.js
+++ b/src/util/urls.js
@@ -238,36 +238,3 @@ export function getPagePathname({
 export function getPageSubdirectoryPrefix({urlArgs}) {
   return '../'.repeat(urlArgs.join('/').split('/').length - 1);
 }
-
-export function getPagePaths({
-  baseDirectory,
-  fullKey,
-  outputPath,
-  urlArgs,
-  urls,
-}) {
-  const [groupKey, subKey] = fullKey.split('.');
-
-  const pathname = getPagePathname({
-    baseDirectory,
-    device: true,
-    fullKey,
-    urlArgs,
-    urls,
-  });
-
-  const outputDirectory = path.join(outputPath, pathname);
-
-  const output = {
-    directory: outputDirectory,
-    documentHTML: path.join(outputDirectory, 'index.html'),
-    oEmbedJSON: path.join(outputDirectory, 'oembed.json'),
-  };
-
-  return {
-    urlPath: [fullKey, ...urlArgs],
-
-    output,
-    pathname,
-  };
-}