| 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);
|
|
|