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

Unified Diff: pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart

Issue 2872803003: Remove unused reference to SearchEngine (Closed)
Patch Set: Created 3 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
Index: pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart b/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
index 3f490ee854f569ddf83de22ab344bd337a83af6a..8150566459805ee6fe4f340b66e3d2cb650cd7fd 100644
--- a/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
+++ b/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
@@ -11,11 +11,8 @@ import 'package:analysis_server/src/services/completion/completion_core.dart';
import 'package:analysis_server/src/services/completion/completion_performance.dart';
import 'package:analysis_server/src/services/completion/dart/completion_manager.dart'
show DartCompletionRequestImpl, ReplacementRange;
-import 'package:analysis_server/src/services/index/index.dart';
-import 'package:analysis_server/src/services/search/search_engine_internal.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/source/package_map_resolver.dart';
-import 'package:analyzer/src/dart/analysis/ast_provider_context.dart';
import 'package:analyzer/src/dart/analysis/driver.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/task/dart.dart';
@@ -32,8 +29,6 @@ int suggestionComparator(CompletionSuggestion s1, CompletionSuggestion s2) {
abstract class DartCompletionContributorTest extends AbstractContextTest {
static const String _UNCHECKED = '__UNCHECKED__';
- Index index;
- SearchEngineImpl searchEngine;
String testFile = '/completionTest.dart';
Source testSource;
int completionOffset;
@@ -490,7 +485,6 @@ abstract class DartCompletionContributorTest extends AbstractContextTest {
analysisResult,
enableNewAnalysisDriver ? null : context,
provider,
- searchEngine,
testSource,
completionOffset,
new CompletionPerformance(),
@@ -631,9 +625,6 @@ abstract class DartCompletionContributorTest extends AbstractContextTest {
@override
void setUp() {
super.setUp();
- index = createMemoryIndex();
- searchEngine =
- new SearchEngineImpl(index, (_) => new AstProviderForContext(context));
contributor = createContributor();
}
}

Powered by Google App Engine
This is Rietveld 408576698