From 70a48f6d2f7bd105a86de73f0950a4a366302409 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 26 Sep 2020 00:48:29 +0200 Subject: [PATCH] Graph: Remove unused function We never assign nodes randomly starting positions any more. --- lib/core/graph.dart | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/core/graph.dart b/lib/core/graph.dart index 10b3d492..3c9fff1b 100644 --- a/lib/core/graph.dart +++ b/lib/core/graph.dart @@ -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() {