refactor(workboard): drop unused parent-link helper

This commit is contained in:
Vincent Koc
2026-06-20 03:31:20 +08:00
parent 3fa4fdaec1
commit 753ff96771

View File

@@ -2970,17 +2970,6 @@ export class WorkboardStore {
return await this.promoteDependencyReady(nextChild.id);
}
async linkParents(childId: string, parentIds: readonly string[]): Promise<WorkboardCard> {
let child = await this.get(childId);
if (!child) {
throw new Error(`card not found: ${childId}`);
}
for (const parentId of parentIds) {
child = await this.linkCards(parentId, child.id);
}
return child;
}
private async dependencyTargetStatus(card: WorkboardCard, now: number): Promise<WorkboardStatus> {
const scheduledAt = card.metadata?.automation?.scheduledAt;
const parents = cardParentIds(card);