Index: pkg/analyzer/lib/src/context/context.dart |
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart |
index 0851eed7916d7b2e04ec8ae5e6e1f788cc0008b5..9c885cab24e2d4c2063c57c1feebc68c1f64f1b1 100644 |
--- a/pkg/analyzer/lib/src/context/context.dart |
+++ b/pkg/analyzer/lib/src/context/context.dart |
@@ -653,9 +653,6 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
_contentRangeChanged(source, change.contents, change.offset, |
change.oldLength, change.newLength); |
}); |
- for (Source source in changeSet.deletedSources) { |
- _sourceDeleted(source); |
- } |
for (Source source in removedSources) { |
_sourceRemoved(source); |
} |
@@ -1916,37 +1913,6 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
} |
/** |
- * Record that the give [source] has been deleted. |
- */ |
- void _sourceDeleted(Source source) { |
- // TODO(brianwilkerson) Implement or remove this. |
-// SourceEntry sourceEntry = _cache.get(source); |
-// if (sourceEntry is HtmlEntry) { |
-// HtmlEntry htmlEntry = sourceEntry; |
-// htmlEntry.recordContentError(new CaughtException( |
-// new AnalysisException("This source was marked as being deleted"), |
-// null)); |
-// } else if (sourceEntry is DartEntry) { |
-// DartEntry dartEntry = sourceEntry; |
-// HashSet<Source> libraries = new HashSet<Source>(); |
-// for (Source librarySource in getLibrariesContaining(source)) { |
-// libraries.add(librarySource); |
-// for (Source dependentLibrary |
-// in getLibrariesDependingOn(librarySource)) { |
-// libraries.add(dependentLibrary); |
-// } |
-// } |
-// for (Source librarySource in libraries) { |
-// _invalidateLibraryResolution(librarySource); |
-// } |
-// dartEntry.recordContentError(new CaughtException( |
-// new AnalysisException("This source was marked as being deleted"), |
-// null)); |
-// } |
- _removeFromPriorityOrder(source); |
- } |
- |
- /** |
* Record that the given [source] has been removed. |
*/ |
void _sourceRemoved(Source source) { |