Skip to content

Commit

Permalink
chore(dashboard): remove unused function (#19158)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel authored Oct 29, 2024
1 parent d39ac9c commit 31a6505
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions dashboard/lib/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,33 +516,3 @@ export function generateFragmentEdges(
}
return links
}

export function generateRelationBackPressureEdges(
layoutMap: RelationBoxPosition[]
): Edge[] {
const links = []
const relationMap = new Map<string, RelationBoxPosition>()
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
}

0 comments on commit 31a6505

Please sign in to comment.