From 31a650521dae6bbb83c87c37db7795c60e2a0a0a Mon Sep 17 00:00:00 2001 From: Noel Kwan <47273164+kwannoel@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:26:01 +0800 Subject: [PATCH] chore(dashboard): remove unused function (#19158) --- dashboard/lib/layout.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/dashboard/lib/layout.ts b/dashboard/lib/layout.ts index e6549d4b1e979..714ed9fe0f0db 100644 --- a/dashboard/lib/layout.ts +++ b/dashboard/lib/layout.ts @@ -516,33 +516,3 @@ export function generateFragmentEdges( } return links } - -export function generateRelationBackPressureEdges( - layoutMap: RelationBoxPosition[] -): Edge[] { - const links = [] - const relationMap = new Map() - for (const x of layoutMap) { - relationMap.set(x.id, x) - } - for (const relation of layoutMap) { - for (const parentId of relation.parentIds) { - const parentRelation = relationMap.get(parentId)! - links.push({ - points: [ - { - x: relation.x + relation.width / 2, - y: relation.y + relation.height / 2, - }, - { - x: parentRelation.x + parentRelation.width / 2, - y: parentRelation.y + parentRelation.height / 2, - }, - ], - source: relation.id, - target: parentId, - }) - } - } - return links -}