Graph: Remove unused function

We never assign nodes randomly starting positions any more.
This commit is contained in:
Vishesh Handa
2020-09-26 00:48:29 +02:00
parent 34630c671e
commit 70a48f6d2f

View File

@ -162,17 +162,6 @@ class Graph extends ChangeNotifier {
return _nodes;
}
void assignRandomPositions(int maxX, int maxY) {
var random = Random(DateTime.now().millisecondsSinceEpoch);
for (var node in nodes) {
node.x = random.nextInt(maxX).toDouble();
node.y = random.nextInt(maxY).toDouble();
}
notifyListeners();
}
Timer layoutTimer;
void startLayout() {