Remove unused globals
By using the script in crrev.com/c/devtools/devtools-frontend/+/1942289
we can prune all globals that are not actually global. Most of these are
internal private variables that are now module-scoped. Some variables
were also completely unused, which ESLint nicely reported.
Change-Id: I43689ac7544ad1239acc7d0eeec4dcd563d7fea9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1942290
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
diff --git a/front_end/audits/AuditsStatusView.js b/front_end/audits/AuditsStatusView.js
index 49a044e..f3b2454 100644
--- a/front_end/audits/AuditsStatusView.js
+++ b/front_end/audits/AuditsStatusView.js
@@ -297,7 +297,7 @@
export const minimumTextVisibilityDuration = 3000;
/** @type {!Array.<!RegExp>} */
-export const KnownBugPatterns = [
+const KnownBugPatterns = [
/PARSING_PROBLEM/,
/DOCUMENT_REQUEST/,
/READ_FAILED/,
@@ -328,7 +328,7 @@
];
/** @typedef {{message: string, deviceType: string, throttling: string}} */
-export const LoadingMessages = [
+const LoadingMessages = [
{
deviceType: 'mobile',
throttling: 'on',
@@ -351,7 +351,7 @@
},
];
-export const FastFacts = [
+const FastFacts = [
ls
`1MB takes a minimum of 5 seconds to download on a typical 3G connection [Source: WebPageTest and DevTools 3G definition].`,
ls`Rebuilding Pinterest pages for performance increased conversion rates by 15% [Source: WPO Stats]`,
@@ -383,17 +383,9 @@
Audits = Audits || {};
/**
- * @constructor
- */
+* @constructor
+*/
Audits.StatusView = StatusView;
- Audits.StatusView.FastFacts = FastFacts;
-
- /** @type {!Array.<!RegExp>} */
- Audits.StatusView.KnownBugPatterns = KnownBugPatterns;
-
/** @typedef {{message: string, progressBarClass: string, order: number}} */
Audits.StatusView.StatusPhases = StatusPhases;
-
- /** @typedef {{message: string, deviceType: string, throttling: string}} */
- Audits.StatusView.LoadingMessages = LoadingMessages;