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

Unified Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1133463004: Remove some unused AnalysisContextImpl methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9ee1b751cfe4b4e5ae0e0449900ee98c298f3be5..4f2c85d72511b4386e82bc92c7e00300d812a372 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -1016,25 +1016,6 @@ class AnalysisContextImpl implements InternalAnalysisContext {
return changed;
}
- /**
- * Invalidates hints in the given [librarySource] and included parts.
- */
- void invalidateLibraryHints(Source librarySource) {
- cache.CacheEntry entry = _cache.get(librarySource);
- // Prepare sources to invalidate hints in.
- List<Source> sources = <Source>[librarySource];
- sources.addAll(entry.getValue(INCLUDED_PARTS));
- // Invalidate hints.
- for (Source source in sources) {
- LibrarySpecificUnit unitTarget =
- new LibrarySpecificUnit(librarySource, source);
- cache.CacheEntry unitEntry = _cache.get(unitTarget);
- if (unitEntry.getState(HINTS) == CacheState.VALID) {
- unitEntry.setState(HINTS, CacheState.INVALID);
- }
- }
- }
-
@override
bool isClientLibrary(Source librarySource) {
cache.CacheEntry entry = _cache.get(librarySource);
@@ -1293,21 +1274,6 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
}
- /**
- * Return the priority that should be used when the source associated with
- * the given [entry] is added to the work manager.
- */
- SourcePriority _computePriority(cache.CacheEntry entry) {
- // Used in commented out code.
- SourceKind kind = entry.getValue(SOURCE_KIND);
- if (kind == SourceKind.LIBRARY) {
- return SourcePriority.LIBRARY;
- } else if (kind == SourceKind.PART) {
- return SourcePriority.NORMAL_PART;
- }
- return SourcePriority.UNKNOWN;
- }
-
Object /*V*/ _computeResult(
AnalysisTarget target, ResultDescriptor /*<V>*/ descriptor) {
cache.CacheEntry entry = getCacheEntry(target);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698