Skip to content

Commit c21beef

Browse files
jakemac53Commit Queue
authored andcommitted
remove unused import
Change-Id: I2337a3ba638f4718bfc71abedf3fae5ae0ebb189 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/431641 Commit-Queue: Daco Harkes <[email protected]> Auto-Submit: Jake Macdonald <[email protected]> Reviewed-by: Daco Harkes <[email protected]>
1 parent ce6e968 commit c21beef

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

samples/ffi/httpIG/lib/http.dart

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import 'dart:convert';
77
import 'dart:ffi';
88
import 'dart:isolate';
99
import 'dart:io';
10-
import 'dart:typed_data';
1110

1211
import 'package:ffi/ffi.dart';
1312

@@ -72,18 +71,18 @@ ReceivePort httpServe(void Function(String) onRequest) {
7271
rp.sendPort.send(s);
7372
});
7473
rp.listen(
75-
(s) {
76-
print('httpServe counter: $counter');
77-
onRequest(s);
78-
},
79-
onError: (e, st) {
80-
print('httpServe receiver get error $e $st');
81-
},
82-
onDone: () {
83-
nativeHttpStopServing();
84-
callback.close();
85-
},
86-
);
74+
(s) {
75+
print('httpServe counter: $counter');
76+
onRequest(s);
77+
},
78+
onError: (e, st) {
79+
print('httpServe receiver get error $e $st');
80+
},
81+
onDone: () {
82+
nativeHttpStopServing();
83+
callback.close();
84+
},
85+
);
8786

8887
// Invoke the native function to start the HTTP server. Our example
8988
// HTTP library will start a server on a background thread, and pass

0 commit comments

Comments
 (0)