From 64d9650e51134aa6fd2c107878523668cf565089 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Tue, 23 Mar 2021 21:32:53 -0700 Subject: [PATCH] [flutter_tools] remove suite channel access from web tests (#78915) --- packages/flutter_tools/lib/src/web/bootstrap.dart | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/flutter_tools/lib/src/web/bootstrap.dart b/packages/flutter_tools/lib/src/web/bootstrap.dart index ce922010dc..be426d868e 100644 --- a/packages/flutter_tools/lib/src/web/bootstrap.dart +++ b/packages/flutter_tools/lib/src/web/bootstrap.dart @@ -136,14 +136,6 @@ String generateTestEntrypoint({ StreamChannel serializeSuite(Function getMain(), {bool hidePrints = true}) => RemoteListener.start(getMain, hidePrints: hidePrints); - StreamChannel suiteChannel(String name) { - var manager = SuiteChannelManager.current; - if (manager == null) { - throw StateError('suiteChannel() may only be called within a test worker.'); - } - return manager.connectOut(name); - } - StreamChannel postMessageChannel() { var controller = StreamChannelController(sync: true); window.onMessage.firstWhere((message) {