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

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

Issue 1132623002: Remove unused AnalysisContextImpl.findElementById(). (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 | pkg/analyzer/lib/src/generated/engine.dart » ('j') | 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 599bb4cc8c9477ffb1bd4750beb70d6d64e0d3df..3f52feff01c8435173692a8a2a66293b221ef4e9 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -674,29 +674,6 @@ class AnalysisContextImpl implements InternalAnalysisContext {
return source.exists();
}
- Element findElementById(int id) {
- // TODO(brianwilkerson) Implement this.
- return null;
-// _ElementByIdFinder finder = new _ElementByIdFinder(id);
-// try {
-// MapIterator<AnalysisTarget, cache.CacheEntry> iterator =
-// _cache.iterator();
-// while (iterator.moveNext()) {
-// cache.CacheEntry entry = iterator.value;
-// if (entry.getValue(SOURCE_KIND) == SourceKind.LIBRARY) {
-// DartEntry dartEntry = entry;
-// LibraryElement library = dartEntry.getValue(DartEntry.ELEMENT);
-// if (library != null) {
-// library.accept(finder);
-// }
-// }
-// }
-// } on _ElementByIdFinderException {
-// return finder.result;
-// }
-// return null;
- }
-
@override
cache.CacheEntry getCacheEntry(AnalysisTarget target) {
cache.CacheEntry entry = _cache.get(target);
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698