[Analyzer] Remove a few unused fields / functions

This results in 2+ MB savings when running analyzer in JIT mode on
flutter.

TEST=ci

Change-Id: I4c110846c0fd64476538605f4ccf195781f72c55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255251
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart
index 072beb9..b627665 100644
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart
@@ -2196,15 +2196,6 @@
     );
   }
 
-  /// Create a documentation comment consisting of the given [tokens].
-  static CommentImpl createDocumentationComment(List<Token> tokens) {
-    return CommentImpl(
-      tokens: tokens,
-      type: CommentType.DOCUMENTATION,
-      references: const <CommentReference>[],
-    );
-  }
-
   /// Create a documentation comment consisting of the given [tokens] and having
   /// the given [references] embedded within it.
   static CommentImpl createDocumentationCommentWithReferences(
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index d98e0e2..cbceaa5 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -2846,15 +2846,6 @@
   /// The path to the element whose location is represented by this object.
   late final List<String> _components;
 
-  /// The object managing [indexKeyId] and [indexLocationId].
-  Object? indexOwner;
-
-  /// A cached id of this location in index.
-  int? indexKeyId;
-
-  /// A cached id of this location in index.
-  int? indexLocationId;
-
   /// Initialize a newly created location to represent the given [element].
   ElementLocationImpl.con1(Element element) {
     List<String> components = <String>[];