Remove unnecessary code from some tests

Change-Id: If3ab5e836a1977ab1089cdefdeb661d8992543ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371183
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analysis_server/test/services/completion/dart/location/class_declaration_test.dart b/pkg/analysis_server/test/services/completion/dart/location/class_declaration_test.dart
index 9631f34..89f4cf8 100644
--- a/pkg/analysis_server/test/services/completion/dart/location/class_declaration_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/location/class_declaration_test.dart
@@ -127,7 +127,6 @@
 
   Future<void> test_name_withBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 class ^ {}
 ''');
@@ -140,7 +139,6 @@
 
   Future<void> test_name_withoutBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 class ^
 ''');
diff --git a/pkg/analysis_server/test/services/completion/dart/location/enum_declaration_test.dart b/pkg/analysis_server/test/services/completion/dart/location/enum_declaration_test.dart
index fed2548..9a0e45f 100644
--- a/pkg/analysis_server/test/services/completion/dart/location/enum_declaration_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/location/enum_declaration_test.dart
@@ -355,7 +355,6 @@
 
   Future<void> test_name_withBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 enum ^ {}
 ''');
@@ -368,7 +367,6 @@
 
   Future<void> test_name_withoutBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 enum ^
 ''');
diff --git a/pkg/analysis_server/test/services/completion/dart/location/extension_declaration_test.dart b/pkg/analysis_server/test/services/completion/dart/location/extension_declaration_test.dart
index 53a855d..24a71c1 100644
--- a/pkg/analysis_server/test/services/completion/dart/location/extension_declaration_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/location/extension_declaration_test.dart
@@ -56,7 +56,6 @@
 
   Future<void> test_name_partial() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 extension T^
 ''');
@@ -73,7 +72,6 @@
 
   Future<void> test_name_withBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 extension ^ {}
 ''');
@@ -90,7 +88,6 @@
 
   Future<void> test_name_withoutBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 extension ^
 ''');
diff --git a/pkg/analysis_server/test/services/completion/dart/location/extension_type_declaration_test.dart b/pkg/analysis_server/test/services/completion/dart/location/extension_type_declaration_test.dart
index 07568c8..ac07f2f 100644
--- a/pkg/analysis_server/test/services/completion/dart/location/extension_type_declaration_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/location/extension_type_declaration_test.dart
@@ -124,7 +124,6 @@
 
   Future<void> test_name_withBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 extension type ^ {}
 ''');
@@ -137,7 +136,6 @@
 
   Future<void> test_name_withoutBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 extension type ^
 ''');
diff --git a/pkg/analysis_server/test/services/completion/dart/location/mixin_declaration_test.dart b/pkg/analysis_server/test/services/completion/dart/location/mixin_declaration_test.dart
index ea6a916..79eb3cf 100644
--- a/pkg/analysis_server/test/services/completion/dart/location/mixin_declaration_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/location/mixin_declaration_test.dart
@@ -45,7 +45,6 @@
 
   Future<void> test_name_withBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 mixin ^ {}
 ''');
@@ -58,7 +57,6 @@
 
   Future<void> test_name_withoutBody() async {
     allowedIdentifiers = {'Test', 'Test {}'};
-    printerConfiguration.withSelection = true;
     await computeSuggestions('''
 mixin ^
 ''');