« get me outta code hell

util: remove unused getPagePathnameAcrossLanguages 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-09-08 08:45:30 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-08 08:46:25 -0300
commit745322c71c2443a631533ad7ef651ea30ad87a7c (patch)
tree892ca73345a5063c176cde5c4f2f7d0c4cfd194c /src/util
parent19b6cbd1cde35399c0ecdee5459c5a4946e84299 (diff)
util: remove unused getPagePathnameAcrossLanguages util
Diffstat (limited to 'src/util')
-rw-r--r--src/util/urls.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/util/urls.js b/src/util/urls.js
index d2b303e9..11b9b8b0 100644
--- a/src/util/urls.js
+++ b/src/util/urls.js
@@ -237,27 +237,6 @@ export function getPagePathname({
     : to('localized.' + pagePath[0], ...pagePath.slice(1)));
 }
 
-export function getPagePathnameAcrossLanguages({
-  defaultLanguage,
-  languages,
-  pagePath,
-  urls,
-}) {
-  return withEntries(languages, entries => entries
-    .filter(([key, language]) => key !== 'default' && !language.hidden)
-    .map(([_key, language]) => [
-      language.code,
-      getPagePathname({
-        baseDirectory:
-          (language === defaultLanguage
-            ? ''
-            : language.code),
-        pagePath,
-        urls,
-      }),
-    ]));
-}
-
 // Needed for the rare path arguments which themselves contains one or more
 // slashes, e.g. for listings, with arguments like 'albums/by-name'.
 export function getPageSubdirectoryPrefix({