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 <[email protected]>
Reviewed-by: Paul Lewis <[email protected]>
diff --git a/front_end/formatter/ScriptFormatter.js b/front_end/formatter/ScriptFormatter.js
index 719ea14..c99522e 100644
--- a/front_end/formatter/ScriptFormatter.js
+++ b/front_end/formatter/ScriptFormatter.js
@@ -56,7 +56,6 @@
   const position = lineNumber ? lineEndings[lineNumber - 1] + 1 : 0;
   return position + columnNumber;
 };
-
 /**
  * @param {!Array<number>} lineEndings
  * @param {number} position
@@ -107,7 +106,7 @@
  * @implements {FormatterInterface}
  * @unrestricted
  */
-export class ScriptIdentityFormatter {
+class ScriptIdentityFormatter {
   /**
    * @param {string} mimeType
    * @param {string} content
@@ -142,7 +141,7 @@
  * @implements {FormatterSourceMapping}
  * @unrestricted
  */
-export class IdentityFormatterSourceMapping {
+class IdentityFormatterSourceMapping {
   /**
    * @override
    * @param {number} lineNumber
@@ -168,7 +167,7 @@
  * @implements {FormatterSourceMapping}
  * @unrestricted
  */
-export class FormatterSourceMappingImpl {
+class FormatterSourceMappingImpl {
   /**
    * @param {!Array.<number>} originalLineEndings
    * @param {!Array.<number>} formattedLineEndings
@@ -235,14 +234,5 @@
 /** @constructor */
 Formatter.ScriptFormatter = ScriptFormatter;
 
-/** @constructor */
-Formatter.ScriptIdentityFormatter = ScriptIdentityFormatter;
-
 /** @interface */
 Formatter.FormatterSourceMapping = FormatterSourceMapping;
-
-/** @constructor */
-Formatter.IdentityFormatterSourceMapping = IdentityFormatterSourceMapping;
-
-/** @constructor */
-Formatter.FormatterSourceMappingImpl = FormatterSourceMappingImpl;