mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 20:43:20 +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;
|
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;
|
Timer layoutTimer;
|
||||||
|
|
||||||
void startLayout() {
|
void startLayout() {
|
||||||
|
Reference in New Issue
Block a user