Skip to content

Commit

Permalink
Remove unused analytics code. (flutter#8641)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll authored Dec 17, 2024
1 parent 2698b00 commit cb90cb8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/devtools_app/lib/src/shared/analytics/_analytics_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -852,22 +852,6 @@ Future<void> computeFlutterClientId() async {
flutterClientId = await server.flutterGAClientID();
}

int _stillWaiting = 0;

void waitForDimensionsComputed(String screenName) {
Timer(const Duration(milliseconds: 100), () {
if (_analyticsComputed) {
screen(screenName);
} else {
if (_stillWaiting++ < 50) {
waitForDimensionsComputed(screenName);
} else {
_log.warning('Cancel waiting for dimensions.');
}
}
});
}

Future<void> setupDimensions() async {
if (!_analyticsComputed && !_computingDimensions) {
_computingDimensions = true;
Expand Down

0 comments on commit cb90cb8

Please sign in to comment.