Skip to content

Commit 6d2fdea

Browse files
committedNov 10, 2024
Remove unused export
1 parent 135e478 commit 6d2fdea

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed
 

‎packages/knip/src/util/fs.ts

-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { readFile } from 'node:fs/promises';
33
import yaml from 'js-yaml';
44
import { parse as parseTOML } from 'smol-toml';
55
import stripJsonComments from 'strip-json-comments';
6-
import { timerify } from './Performance.js';
76
import { LoaderError } from './errors.js';
87
import { join } from './path.js';
98

@@ -63,5 +62,3 @@ export const parseJSON = async (filePath: string, contents: string) => {
6362
export const parseYAML = (contents: string) => {
6463
return yaml.load(contents);
6564
};
66-
67-
export const _loadJSON = timerify(loadJSON);

‎packages/knip/src/util/plugin.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export { _loadJSON as loadJSON } from './fs.js';
21
export { _load as load } from './loader.js';
32
import type { Plugin, PluginOptions, RawPluginConfiguration } from '../types/config.js';
43
import { arrayify } from './array.js';

0 commit comments

Comments
 (0)
Please sign in to comment.