diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart index 89d2ad1dfc..d06a9c595a 100644 --- a/packages/flutter_tools/lib/src/vmservice.dart +++ b/packages/flutter_tools/lib/src/vmservice.dart @@ -562,21 +562,6 @@ class FlutterVmService { } } - // TODO(andrewkolos): this is to assist in troubleshooting - // https://github.com/flutter/flutter/issues/152220 and should be reverted - // once this issue is resolved. - final StreamSubscription onReceiveSubscription = service.onReceive.listen(( - String message, - ) { - globals.logger.printTrace('runInView VM service onReceive listener received "$message"'); - final dynamic messageAsJson = jsonDecode(message); - // ignore: avoid_dynamic_calls -- Temporary code. - final dynamic messageKind = messageAsJson['params']?['event']?['kind']; - if (messageKind == 'IsolateRunnable') { - globals.logger.printTrace('Received IsolateRunnable event from onReceive.'); - } - }); - final Future onRunnable = service.onIsolateEvent.firstWhere((vm_service.Event event) { return event.kind == vm_service.EventKind.kIsolateRunnable; }); @@ -589,7 +574,6 @@ class FlutterVmService { }, ); await onRunnable; - await onReceiveSubscription.cancel(); } Future flutterDebugDumpApp({required String isolateId}) async {