Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2331753002: Remove deprecated ChangeSet.deletedSources. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 7203aea0a048550427de657dd6307d011d1deabb..36f18024ae7dd70709d8c0f36c9d8c49be28eee4 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1773,12 +1773,6 @@ class ChangeSet {
final List<SourceContainer> removedContainers = new List<SourceContainer>();
/**
- * A list containing the sources that have been deleted.
- */
- @deprecated
- final List<Source> deletedSources = new List<Source>();
-
- /**
* Return a table mapping the sources whose content has been changed to the
* current content of those sources.
*/
@@ -1793,8 +1787,7 @@ class ChangeSet {
_changedContent.isEmpty &&
changedRanges.isEmpty &&
removedSources.isEmpty &&
- removedContainers.isEmpty &&
- deletedSources.isEmpty;
+ removedContainers.isEmpty;
/**
* Record that the specified [source] has been added and that its content is
@@ -1836,14 +1829,6 @@ class ChangeSet {
}
/**
- * Record that the specified [source] has been deleted.
- */
- @deprecated
- void deletedSource(Source source) {
- deletedSources.add(source);
- }
-
- /**
* Record that the specified source [container] has been removed.
*/
void removedContainer(SourceContainer container) {
@@ -1873,8 +1858,6 @@ class ChangeSet {
needsSeparator =
_appendSources2(buffer, changedRanges, needsSeparator, "changedRanges");
needsSeparator = _appendSources(
- buffer, deletedSources, needsSeparator, "deletedSources");
- needsSeparator = _appendSources(
buffer, removedSources, needsSeparator, "removedSources");
int count = removedContainers.length;
if (count > 0) {
@@ -2681,10 +2664,9 @@ class SourcesChangedEvent {
/**
* Return `true` if any sources were removed or deleted.
*/
- bool get wereSourcesRemovedOrDeleted =>
+ bool get wereSourcesRemoved =>
_changeSet.removedSources.length > 0 ||
- _changeSet.removedContainers.length > 0 ||
- _changeSet.deletedSources.length > 0;
+ _changeSet.removedContainers.length > 0;
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698