From cb90cb84a973dc75c8844894c103d9e5a5f035f4 Mon Sep 17 00:00:00 2001 From: Kenzie Davisson <43759233+kenzieschmoll@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:12:59 -0800 Subject: [PATCH] Remove unused analytics code. (#8641) --- .../lib/src/shared/analytics/_analytics_web.dart | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/packages/devtools_app/lib/src/shared/analytics/_analytics_web.dart b/packages/devtools_app/lib/src/shared/analytics/_analytics_web.dart index 71383d999dc..178e0817816 100644 --- a/packages/devtools_app/lib/src/shared/analytics/_analytics_web.dart +++ b/packages/devtools_app/lib/src/shared/analytics/_analytics_web.dart @@ -852,22 +852,6 @@ Future 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 setupDimensions() async { if (!_analyticsComputed && !_computingDimensions) { _computingDimensions = true;