Index: pkg/analysis_server/lib/src/search/search_domain.dart |
diff --git a/pkg/analysis_server/lib/src/search/search_domain.dart b/pkg/analysis_server/lib/src/search/search_domain.dart |
index 91fcb4dc3c3606f187f74334c3fb63821b495edf..ebb32456c6fc05ee649cbf3e595b40304286795b 100644 |
--- a/pkg/analysis_server/lib/src/search/search_domain.dart |
+++ b/pkg/analysis_server/lib/src/search/search_domain.dart |
@@ -51,9 +51,6 @@ class SearchDomainHandler implements protocol.RequestHandler { |
new protocol.SearchFindElementReferencesParams.fromRequest(request); |
String file = params.file; |
// prepare element |
- if (!server.options.enableNewAnalysisDriver) { |
- await server.onAnalysisComplete; |
- } |
Element element = await server.getElementAtOffset(file, params.offset); |
if (element is ImportElement) { |
element = (element as ImportElement).prefix; |
@@ -141,14 +138,6 @@ class SearchDomainHandler implements protocol.RequestHandler { |
Future getTypeHierarchy(protocol.Request request) async { |
var params = new protocol.SearchGetTypeHierarchyParams.fromRequest(request); |
String file = params.file; |
- // wait for analysis |
- if (!server.options.enableNewAnalysisDriver) { |
- if (params.superOnly == true) { |
- await server.onFileAnalysisComplete(file); |
- } else { |
- await server.onAnalysisComplete; |
- } |
- } |
// prepare element |
Element element = await server.getElementAtOffset(file, params.offset); |
if (element == null) { |