Remove an unused subclass of LineInfo
Change-Id: I9503b52de9ed43c94432dd9c6b36719c4192d610
Reviewed-on: https://dart-review.googlesource.com/50960
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
diff --git a/pkg/analyzer/lib/src/generated/source.dart b/pkg/analyzer/lib/src/generated/source.dart
index f930bcd..de9c88f 100644
--- a/pkg/analyzer/lib/src/generated/source.dart
+++ b/pkg/analyzer/lib/src/generated/source.dart
@@ -218,20 +218,7 @@
* Initialize a newly created set of line information to represent the data
* encoded in the given list of [lineStarts].
*/
- factory LineInfo(List<int> lineStarts) => new LineInfoWithCount(lineStarts);
-
- /**
- * Initialize a newly created set of line information corresponding to the
- * given file [content].
- */
- factory LineInfo.fromContent(String content) =>
- new LineInfoWithCount(StringUtilities.computeLineStarts(content));
-
- /**
- * Initialize a newly created set of line information to represent the data
- * encoded in the given list of [lineStarts].
- */
- LineInfo._(this.lineStarts) {
+ LineInfo(this.lineStarts) {
if (lineStarts == null) {
throw new ArgumentError("lineStarts must be non-null");
} else if (lineStarts.length < 1) {
@@ -240,6 +227,13 @@
}
/**
+ * Initialize a newly created set of line information corresponding to the
+ * given file [content].
+ */
+ factory LineInfo.fromContent(String content) =>
+ new LineInfo(StringUtilities.computeLineStarts(content));
+
+ /**
* The number of lines.
*/
int get lineCount => lineStarts.length;
@@ -331,21 +325,6 @@
}
/**
- * Information about line and column information within a source file,
- * including a count of the total number of lines.
- *
- * TODO(paulberry): in the next major version roll of analyzer, merge this
- * class into [LineInfo].
- */
-class LineInfoWithCount extends LineInfo {
- /**
- * Initialize a newly created set of line information to represent the data
- * encoded in the given list of [lineStarts].
- */
- LineInfoWithCount(List<int> lineStarts) : super._(lineStarts);
-}
-
-/**
* Instances of interface `LocalSourcePredicate` are used to determine if the given
* [Source] is "local" in some sense, so can be updated.
*/