[dart2js] Delete unused file script.dart

Change-Id: I3b4dafcb46d478394dcee5f5c5ef602306ecc215
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241343
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 55d0d01..fdda1c8 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -749,8 +749,6 @@
 
   void _reportDiagnosticMessage(
       DiagnosticMessage diagnosticMessage, api.Diagnostic kind) {
-    // [:span.uri:] might be [:null:] in case of a [Script] with no [uri]. For
-    // instance in the [Types] constructor in typechecker.dart.
     var span = diagnosticMessage.sourceSpan;
     var message = diagnosticMessage.message;
     if (span == null || span.uri == null) {
diff --git a/pkg/compiler/lib/src/script.dart b/pkg/compiler/lib/src/script.dart
deleted file mode 100644
index 01a40dc..0000000
--- a/pkg/compiler/lib/src/script.dart
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// @dart = 2.10
-
-library dart2js.script;
-
-import 'io/source_file.dart';
-
-class Script {
-  final SourceFile file;
-
-  /// The readable URI from which this script was loaded.
-  ///
-  /// See [LibraryLoader] for terminology on URIs.
-  final Uri readableUri;
-
-  /// The resource URI from which this script was loaded.
-  ///
-  /// See [LibraryLoader] for terminology on URIs.
-  final Uri resourceUri;
-
-  /// This script was synthesized.
-  final bool isSynthesized;
-
-  Script(this.readableUri, this.resourceUri, this.file) : isSynthesized = false;
-
-  Script.synthetic(Uri uri)
-      : readableUri = uri,
-        resourceUri = uri,
-        file = StringSourceFile.fromUri(
-            uri, "// Synthetic source file generated for '$uri'."),
-        isSynthesized = true;
-
-  String get text => (file == null) ? null : file.slowText();
-  String get name => (file == null) ? null : file.filename;
-
-  /// Creates a new [Script] with the same URIs, but new content ([file]).
-  Script copyWithFile(SourceFile file) {
-    return Script(readableUri, resourceUri, file);
-  }
-}