Matrix: drop dead legacy crypto wrapper

This commit is contained in:
Gustavo Madeira Santana
2026-04-09 08:08:59 -04:00
parent 2645ed154b
commit 414b7b5ac4
2 changed files with 2 additions and 4 deletions

View File

@@ -1,2 +0,0 @@
export type { MatrixLegacyCryptoInspectionResult } from "./src/matrix/legacy-crypto-inspector.js";
export { inspectLegacyMatrixCryptoStore } from "./src/matrix/legacy-crypto-inspector.js";

View File

@@ -6,8 +6,8 @@ const LEGACY_CRYPTO_INSPECTOR_BASENAME_RE = /^legacy-crypto-inspector(?:[-.].*)?
function hasSourceInspectorArtifact(currentDir: string): boolean {
return [
path.resolve(currentDir, "..", "legacy-crypto-inspector.ts"),
path.resolve(currentDir, "..", "legacy-crypto-inspector.js"),
path.resolve(currentDir, "matrix", "legacy-crypto-inspector.ts"),
path.resolve(currentDir, "matrix", "legacy-crypto-inspector.js"),
].some((candidate) => fs.existsSync(candidate));
}