Skip to content

Commit fd1ae85

Browse files
committed
Clean up
1 parent f162689 commit fd1ae85

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

packages/client/src/utils/gmodel-util.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
********************************************************************************/
1616
import {
17-
Bounds,
1817
BoundsAware,
1918
EdgeRouterRegistry,
2019
ElementAndBounds,
@@ -502,6 +501,7 @@ export function findAncenstors<T extends GModelElement>(
502501
* Build an ancestors list for N nodes (in input order), with this shape:
503502
* - No shared ancestor: [n1 parents..., n2 parents..., ...]
504503
* - Shared ancestor A: [n1 parents until A, n2 parents until A, A and A's ancestors...]
504+
*
505505
* Notes:
506506
* - Starting nodes are EXCLUDED (only ancestors).
507507
* - `include` decides which elements make it into the final output.
@@ -645,15 +645,3 @@ export function findDescendants<T extends GModelElement>(
645645
collectDescendants(element, 0);
646646
return descendants;
647647
}
648-
649-
export function boundsInElement(elements: GModelElement[], bounds: Bounds | Point): Bounds | Point {
650-
let result = bounds;
651-
652-
for (const element of elements) {
653-
if (element instanceof GChildElement && isBoundsAware(element)) {
654-
result = element.parentToLocal(result);
655-
}
656-
}
657-
658-
return result;
659-
}

0 commit comments

Comments
 (0)