refactor(core): remove unused imports, helpers, and dead migration constant
Drops orphaned imports and the never-referenced V4 migration SQL constant (V4 was inlined into runMigrations). Also drops the unused TypedEventEmitter helper type and unused destructured values from stores. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -184,10 +184,7 @@ const CENTRAL_SCHEMA_V3_CREATE_PEERS_SQL = CENTRAL_SCHEMA_V3_MIGRATION_SQL
|
||||
.filter((line) => !line.trim().startsWith("ALTER TABLE nodes ADD COLUMN"))
|
||||
.join("\n");
|
||||
|
||||
const CENTRAL_SCHEMA_V4_MIGRATION_SQL = `
|
||||
ALTER TABLE nodes ADD COLUMN versionInfo TEXT;
|
||||
ALTER TABLE nodes ADD COLUMN pluginVersions TEXT;
|
||||
`;
|
||||
// V4 migration is applied inline via ALTER TABLE checks (see runMigrations).
|
||||
|
||||
const CENTRAL_SCHEMA_V5_MIGRATION_SQL = `
|
||||
CREATE TABLE IF NOT EXISTS settingsSyncState (
|
||||
|
||||
Reference in New Issue
Block a user