Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
  • Loading branch information
flo-dup committed Jan 25, 2022
1 parent 88d255a commit 1d78007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/powsybl/nad/layout/AbstractLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void run(Graph graph, LayoutParameters layoutParameters) {
busNodesLayout(graph, layoutParameters);
edgesLayout(graph, layoutParameters);

computeSize(graph, layoutParameters);
computeSize(graph);
}

protected abstract void nodesLayout(Graph graph, LayoutParameters layoutParameters);
Expand All @@ -38,7 +38,7 @@ private void setEdgeVisibility(Node node, BranchEdge branchEdge, BranchEdge.Side
}
}

private void computeSize(Graph graph, LayoutParameters layoutParameters) {
private void computeSize(Graph graph) {
double[] dims = new double[4];
Stream.concat(graph.getTextNodesStream(), graph.getNodesStream()).forEach(node -> {
dims[0] = Math.min(dims[0], node.getX());
Expand Down

0 comments on commit 1d78007

Please sign in to comment.