chore: 移除未使用的 loadConnectionModeTimestamp 函数
This commit is contained in:
@@ -181,17 +181,3 @@ export function loadConnectionMode(): string | null {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Load the timestamp of the persisted connection mode.
|
|
||||||
* Returns null if not set or format is legacy.
|
|
||||||
*/
|
|
||||||
export function loadConnectionModeTimestamp(): number | null {
|
|
||||||
const raw = localStorage.getItem(SAASMODE_KEY);
|
|
||||||
if (!raw) return null;
|
|
||||||
try {
|
|
||||||
const parsed = JSON.parse(raw);
|
|
||||||
return parsed.timestamp ?? null;
|
|
||||||
} catch {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user