Skip to content

Commit 4bef392

Browse files
committed
chore: drop unused methods and version
We do not store metadata at all now, so version is useless
1 parent 239718a commit 4bef392

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

cmp/compiler/src/metadata/manager.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { logger } from "../utils/logger";
99

1010
export function createEmptyMetadata(): MetadataSchema {
1111
return {
12-
version: "0.1",
1312
entries: {},
1413
stats: {
1514
totalEntries: 0,
@@ -171,21 +170,4 @@ export class MetadataManager {
171170
await release();
172171
}
173172
}
174-
175-
/**
176-
* Get an entry by hash
177-
*/
178-
getEntry(
179-
metadata: MetadataSchema,
180-
hash: string,
181-
): TranslationEntry | undefined {
182-
return metadata.entries[hash];
183-
}
184-
185-
/**
186-
* Check if an entry exists
187-
*/
188-
hasEntry(metadata: MetadataSchema, hash: string): boolean {
189-
return hash in metadata.entries;
190-
}
191173
}

cmp/compiler/src/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,6 @@ export type BaseTranslationEntry<Type, Context> = {
288288
* Metadata file schema
289289
*/
290290
export interface MetadataSchema {
291-
/**
292-
* Schema version
293-
*/
294-
version: string;
295-
296291
/**
297292
* All translation entries indexed by hash
298293
*/

0 commit comments

Comments
 (0)