Skip to content

Commit f21f366

Browse files
committed
utility.js: Remove no longer used local configuration path code
1 parent 0a106e6 commit f21f366

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/utility.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { fileURLToPath } from 'url'
99
const __filename = fileURLToPath(import.meta.url);
1010
const __dirname = dirname(__filename);
1111

12-
const local_conf_path = __dirname + '/../.vitepress/local.js'
13-
1412
export function normalizeArrayData(data, keys) {
1513
for (const [k, v] of Object.entries(data)) {
1614
if (v) {
@@ -28,19 +26,6 @@ export function normalizeArrayData(data, keys) {
2826
return data
2927
}
3028

31-
let local_conf = null
32-
async function loadLocalConf() {
33-
if (local_conf === null) {
34-
if (fs.existsSync(local_conf_path)) {
35-
local_conf = await import(local_conf_path)
36-
} else {
37-
local_conf = false
38-
}
39-
}
40-
41-
return local_conf
42-
}
43-
4429
export async function loadData(id) {
4530
const path = globalThis.VITEPRESS_CONFIG.userConfig.themeConfig.dovecot?.data_paths?.[id]
4631
?? ('../data/' + id + '.js')

0 commit comments

Comments
 (0)