mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Graph: Remove unused function
We never assign nodes randomly starting positions any more.
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user