Skip to content

OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.

TypeScript

fix: remove unused migrateAndCast export from project-migration

copilot-swe-agent[bot]34d9c1e6ded8
diff --git a/apps/image/src/services/project-migration.ts b/apps/image/src/services/project-migration.ts
index 94fba62f..37edb5a1 100644
--- a/apps/image/src/services/project-migration.ts
+++ b/apps/image/src/services/project-migration.ts
@@ -1,4 +1,3 @@
-import type { Project } from '../types/project';
/** The current document format version. Increment when the schema changes. */
export const CURRENT_VERSION = 1;
@@ -39,12 +38,3 @@ function migrateV0ToV1(doc: Record<string, unknown>): Record<string, unknown> {
return updated;
}
-/**
- * Convenience wrapper used by the project store.
- * Migrates the raw object and returns it cast to `Project`.
- * Always run `parseProject` on the result to verify correctness.
- */
-export function migrateAndCast(raw: unknown): Project {
- const migrated = migrateProject(raw as Record<string, unknown>);
- return migrated as unknown as Project;
-}