From 10853e82fdeb4939c8f3ed0f20697790a52fb617 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 12 Jul 2026 18:28:17 +0200 Subject: [PATCH] refactor(workspaces): remove unused migration helper (#105522) --- extensions/workspaces/src/schema.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/extensions/workspaces/src/schema.ts b/extensions/workspaces/src/schema.ts index 15af9dae8bdb..dae5e1bb4057 100644 --- a/extensions/workspaces/src/schema.ts +++ b/extensions/workspaces/src/schema.ts @@ -456,18 +456,3 @@ export function validateWorkspaceDoc(value: unknown): WorkspaceDoc { prefs: validatePrefs(record.prefs, tabSlugs), }; } - -export function migrateWorkspaceDoc(value: unknown): { doc: WorkspaceDoc; changed: boolean } { - const record = assertRecord(value, "workspaces"); - const schemaVersion = record.schemaVersion; - if (typeof schemaVersion !== "number" || !Number.isInteger(schemaVersion)) { - throw new Error("schemaVersion must be an integer"); - } - if (schemaVersion > CURRENT_WORKSPACE_SCHEMA_VERSION) { - throw new Error(`unsupported future workspace schemaVersion: ${schemaVersion}`); - } - if (schemaVersion < CURRENT_WORKSPACE_SCHEMA_VERSION) { - throw new Error(`unsupported old workspace schemaVersion: ${schemaVersion}`); - } - return { doc: validateWorkspaceDoc(record), changed: false }; -}