Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Oct 28, 2024
1 parent 6263ea6 commit 75f543c
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions dashboard/lib/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,34 +515,4 @@ 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 75f543c

Please sign in to comment.