Skip to content

Commit 639f293

Browse files
derekxu16Commit Queue
authored andcommitted
[VM/Service] Delete waitForServiceInfo from service_test_common.dart
It is now dead code. Change-Id: I181cd5ca9f649348763ae9327cb2af62617af8ad Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/419642 Reviewed-by: Ben Konyi <[email protected]> Commit-Queue: Derek Xu <[email protected]>
1 parent 069dcae commit 639f293

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pkg/vm_service/test/common/service_test_common.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
library service_test_common;
66

77
import 'dart:async';
8-
import 'dart:developer';
98
import 'dart:typed_data';
109

1110
import 'package:path/path.dart' as p;
@@ -590,18 +589,6 @@ List<String> removeAdjacentDuplicates(List<String> fromList) {
590589
return result;
591590
}
592591

593-
/// Waits for ServiceProtocolInfo.serverUri to be populated.
594-
Future<ServiceProtocolInfo> waitForServiceInfo() async {
595-
print('Waiting for the VM service URI to become available...');
596-
var info = await Service.getInfo();
597-
while (info.serverUri == null) {
598-
await Future.delayed(const Duration(milliseconds: 100));
599-
info = await Service.getInfo();
600-
}
601-
print('VM service URI has become available: ${info.serverUri}');
602-
return info;
603-
}
604-
605592
typedef ServiceExtensionHandler = Future<Map<String, dynamic>> Function(
606593
Map<String, dynamic> cb,
607594
);

0 commit comments

Comments
 (0)