Drop invoke utility (#1148)

Usages were removed in https://github.com/dart-lang/test/pull/1119

Since there have since been version constraint bumps it is now safe to
remove entirely.
diff --git a/pkgs/test_api/lib/src/utils.dart b/pkgs/test_api/lib/src/utils.dart
index 7f9be33..ee1cde6 100644
--- a/pkgs/test_api/lib/src/utils.dart
+++ b/pkgs/test_api/lib/src/utils.dart
@@ -241,14 +241,6 @@
   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].