From c21beef54e1fcaf6159aee2367a2fb995eaddf97 Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Mon, 2 Jun 2025 02:09:03 -0700 Subject: [PATCH] remove unused import Change-Id: I2337a3ba638f4718bfc71abedf3fae5ae0ebb189 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/431641 Commit-Queue: Daco Harkes Auto-Submit: Jake Macdonald Reviewed-by: Daco Harkes --- samples/ffi/httpIG/lib/http.dart | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/samples/ffi/httpIG/lib/http.dart b/samples/ffi/httpIG/lib/http.dart index 59a3d404b8a..a7331ad0310 100644 --- a/samples/ffi/httpIG/lib/http.dart +++ b/samples/ffi/httpIG/lib/http.dart @@ -7,7 +7,6 @@ import 'dart:convert'; import 'dart:ffi'; import 'dart:isolate'; import 'dart:io'; -import 'dart:typed_data'; import 'package:ffi/ffi.dart'; @@ -72,18 +71,18 @@ ReceivePort httpServe(void Function(String) onRequest) { rp.sendPort.send(s); }); rp.listen( - (s) { - print('httpServe counter: $counter'); - onRequest(s); - }, - onError: (e, st) { - print('httpServe receiver get error $e $st'); - }, - onDone: () { - nativeHttpStopServing(); - callback.close(); - }, - ); + (s) { + print('httpServe counter: $counter'); + onRequest(s); + }, + onError: (e, st) { + print('httpServe receiver get error $e $st'); + }, + onDone: () { + nativeHttpStopServing(); + callback.close(); + }, + ); // Invoke the native function to start the HTTP server. Our example // HTTP library will start a server on a background thread, and pass