refactor(workboard): drop unused parent-link helper · openclaw/openclaw@753ff96
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2970,17 +2970,6 @@ export class WorkboardStore {
|
2970 | 2970 | return await this.promoteDependencyReady(nextChild.id); |
2971 | 2971 | } |
2972 | 2972 | |
2973 | | -async linkParents(childId: string, parentIds: readonly string[]): Promise<WorkboardCard> { |
2974 | | -let child = await this.get(childId); |
2975 | | -if (!child) { |
2976 | | -throw new Error(`card not found: ${childId}`); |
2977 | | -} |
2978 | | -for (const parentId of parentIds) { |
2979 | | -child = await this.linkCards(parentId, child.id); |
2980 | | -} |
2981 | | -return child; |
2982 | | -} |
2983 | | - |
2984 | 2973 | private async dependencyTargetStatus(card: WorkboardCard, now: number): Promise<WorkboardStatus> { |
2985 | 2974 | const scheduledAt = card.metadata?.automation?.scheduledAt; |
2986 | 2975 | const parents = cardParentIds(card); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。