@@ -299,13 +299,10 @@ final class FfiDatabase extends RawSqliteDatabase {
299299
300300 static Pointer <NativeFunction <Void Function (Pointer <Void >)>> _xDestroy (
301301 List <NativeCallable > callables) {
302- int destroy (Pointer <Void > _) {
302+ void destroy (Pointer <Void > _) {
303303 for (final callable in callables) {
304304 callable.close ();
305305 }
306-
307- // TODO: Remove and change to void after Dart 3.5 or https://github.com/dart-lang/sdk/issues/56064
308- return 0 ;
309306 }
310307
311308 final callable =
@@ -715,8 +712,6 @@ extension on RawXFunc {
715712 return NativeCallable .isolateLocal ((Pointer <sqlite3_context> ctx, int nArgs,
716713 Pointer <Pointer <sqlite3_value>> args) {
717714 this (FfiContext (bindings, ctx), _ValueList (nArgs, args, bindings));
718- // TODO: Remove and change to void after Dart 3.5 or https://github.com/dart-lang/sdk/issues/56064
719- return 0 ;
720715 })
721716 ..keepIsolateAlive = false ;
722717 }
@@ -728,8 +723,6 @@ extension on RawXFinal {
728723 final context = FfiContext (bindings, ctx);
729724 this (context);
730725 if (clean) context.freeContext ();
731- // TODO: Remove and change to void after Dart 3.5 or https://github.com/dart-lang/sdk/issues/56064
732- return 0 ;
733726 })
734727 ..keepIsolateAlive = false ;
735728 }
@@ -762,9 +755,6 @@ extension on RawUpdateHook {
762755 Pointer <sqlite3_char> table, int rowid) {
763756 final tableName = table.readString ();
764757 this (kind, tableName, rowid);
765-
766- // TODO: Remove and change to void after Dart 3.5 or https://github.com/dart-lang/sdk/issues/56064
767- return 0 ;
768758 },
769759 )..keepIsolateAlive = false ;
770760 }
0 commit comments