From c5882a22686290420b8dce1e1f0514464aa0b006 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 26 Feb 2024 18:26:49 -0800 Subject: [PATCH] Remove defunct ReconnectCwtchForeground handlers --- .../app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt | 3 --- lib/cwtch/ffi.dart | 8 -------- lib/cwtch/gomobile.dart | 6 ------ 3 files changed, 17 deletions(-) diff --git a/android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt b/android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt index 7d19a003..5fc51764 100644 --- a/android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt +++ b/android/app/src/main/kotlin/im/cwtch/flwtch/MainActivity.kt @@ -577,9 +577,6 @@ class MainActivity: FlutterActivity() { result.success(Cwtch.searchConversations(profile, pattern)) return } - "ReconnectCwtchForeground" -> { - Cwtch.reconnectCwtchForeground() - } "Shutdown" -> { Cwtch.shutdownCwtch(); } diff --git a/lib/cwtch/ffi.dart b/lib/cwtch/ffi.dart index 32d7ed69..62505007 100644 --- a/lib/cwtch/ffi.dart +++ b/lib/cwtch/ffi.dart @@ -270,14 +270,6 @@ class CwtchFfi implements Cwtch { return _cwtchDir; } - // ignore: non_constant_identifier_names - Future ReconnectCwtchForeground() async { - var reconnectCwtch = library.lookup>("c_ReconnectCwtchForeground"); - // ignore: non_constant_identifier_names - final ReconnectCwtchForeground = reconnectCwtch.asFunction(); - ReconnectCwtchForeground(); - } - // Called on object being disposed to (presumably on app close) to close the isolate that's listening to libcwtch-go events @override void dispose() { diff --git a/lib/cwtch/gomobile.dart b/lib/cwtch/gomobile.dart index e75b95fe..d3db98c0 100644 --- a/lib/cwtch/gomobile.dart +++ b/lib/cwtch/gomobile.dart @@ -86,12 +86,6 @@ class CwtchGomobile implements Cwtch { cwtchPlatform.invokeMethod("Start", {"appDir": _cwtchDir, "torPath": torPath}); } - @override - // ignore: non_constant_identifier_names - Future ReconnectCwtchForeground() async { - cwtchPlatform.invokeMethod("ReconnectCwtchForeground", {}); - } - // Handle libcwtch-go events (received via kotlin) and dispatch to the cwtchNotifier Future _handleAppbusEvent(MethodCall call) async { final String json = call.arguments;