refactor: drop unused plugin cache identity helper

This commit is contained in:
Peter Steinberger
2026-05-02 06:22:26 +01:00
parent d5dbc45eb6
commit d4d4a591e5

View File

@@ -94,22 +94,6 @@ export function createPluginCacheKey(parts: readonly unknown[]): string {
return JSON.stringify(parts);
}
export type FileSystemIdentity = {
path: string;
size: number;
mtimeMs: number;
ctimeMs?: number;
};
export function createFileSystemIdentityCacheKey(identity: FileSystemIdentity): string {
return createPluginCacheKey([
identity.path,
identity.size,
identity.mtimeMs,
identity.ctimeMs ?? null,
]);
}
function normalizeMaxEntries(value: number, fallback: number): number {
if (!Number.isFinite(value) || value <= 0) {
return fallback;