Skip to content

Commit b13c2a5

Browse files
committed
delete 6 dead frontmatter delegate methods from main.ts
These private methods delegated to FrontmatterGuardCoordinator but were never called. The coordinator is called directly at the actual call sites. Removes ~60 lines of dead scaffolding.
1 parent 689a84a commit b13c2a5

1 file changed

Lines changed: 0 additions & 59 deletions

File tree

src/main.ts

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,65 +1361,6 @@ export default class VaultCrdtSyncPlugin extends Plugin {
13611361
);
13621362
}
13631363

1364-
private showFrontmatterGuardNotice(path: string): void {
1365-
this.frontmatterGuardCoordinator.showFrontmatterGuardNotice(path);
1366-
}
1367-
1368-
private buildFrontmatterNoticeFingerprint(
1369-
validation: FrontmatterValidationResult,
1370-
): string {
1371-
return this.frontmatterGuardCoordinator.buildFrontmatterNoticeFingerprint(validation);
1372-
}
1373-
1374-
private shouldNotifyFrontmatterQuarantine(
1375-
path: string,
1376-
direction: "disk-to-crdt" | "crdt-to-disk",
1377-
noticeFingerprint: string,
1378-
): boolean {
1379-
return this.frontmatterGuardCoordinator.shouldNotifyFrontmatterQuarantine(
1380-
path, direction, noticeFingerprint,
1381-
);
1382-
}
1383-
1384-
private clearFrontmatterNoticeFingerprint(
1385-
path: string,
1386-
direction: "disk-to-crdt" | "crdt-to-disk",
1387-
): void {
1388-
this.frontmatterGuardCoordinator.clearFrontmatterNoticeFingerprint(path, direction);
1389-
}
1390-
1391-
private traceFrontmatterQuarantine(
1392-
path: string,
1393-
direction: "disk-to-crdt" | "crdt-to-disk",
1394-
reason: string,
1395-
validation: FrontmatterValidationResult,
1396-
previousLength: number | null,
1397-
nextLength: number,
1398-
): void {
1399-
this.frontmatterGuardCoordinator.traceFrontmatterQuarantine(
1400-
path, direction, reason, validation, previousLength, nextLength,
1401-
);
1402-
}
1403-
1404-
private async persistFrontmatterQuarantine(
1405-
path: string,
1406-
direction: "disk-to-crdt" | "crdt-to-disk",
1407-
validation: FrontmatterValidationResult,
1408-
previousContent: string | null,
1409-
nextContent: string,
1410-
lastNotifiedFingerprint: string,
1411-
lastNoticeAt: number | null,
1412-
): Promise<void> {
1413-
await this.frontmatterGuardCoordinator.persistFrontmatterQuarantine(
1414-
path, direction, validation, previousContent, nextContent,
1415-
lastNotifiedFingerprint, lastNoticeAt,
1416-
);
1417-
}
1418-
1419-
private async clearFrontmatterQuarantine(path: string, reason: string): Promise<void> {
1420-
await this.frontmatterGuardCoordinator.clearFrontmatterQuarantine(path, reason);
1421-
}
1422-
14231364
/**
14241365
* Toggle remote cursor visibility via a CSS class on the document body.
14251366
* The actual cursor styles from y-codemirror.next are hidden when the

0 commit comments

Comments
 (0)