diff --git a/pkgs/test_api/lib/src/utils.dart b/pkgs/test_api/lib/src/utils.dart index 7f9be3313c47fac597b68a447e2affdfb18dd293..ee1cde6e846e894b3dba1e7118b0cde9d289820d 100644 --- a/pkgs/test_api/lib/src/utils.dart +++ b/pkgs/test_api/lib/src/utils.dart @@ -241,14 +241,6 @@ Stream<T> inCompletionOrder<T>(Iterable<CancelableOperation<T>> operations) { return controller.stream; } -/// Runs [fn] and discards its return value. -/// -/// This is useful for making a block of code async without forcing the -/// containing method to return a future. -void invoke(void Function() fn) { - fn(); -} - /// Returns a random base64 string containing [bytes] bytes of data. /// /// [seed] is passed to [math.Random].