refactor: remove orphaned bridge, database, and queue helpers

This commit is contained in:
zarzet
2026-07-26 18:43:53 +07:00
parent d4f0b84615
commit 04a71d0211
20 changed files with 6 additions and 281 deletions
@@ -2386,14 +2386,6 @@ class MainActivity: FlutterFragmentActivity() {
}
result.success(tempPath)
}
"safReplaceFromPath" -> {
val uriStr = call.argument<String>("uri") ?: ""
val srcPath = call.argument<String>("src_path") ?: ""
val ok = withContext(Dispatchers.IO) {
writeUriFromPath(Uri.parse(uriStr), srcPath)
}
result.success(ok)
}
"safCreateFromPath" -> {
val treeUriStr = call.argument<String>("tree_uri") ?: ""
val relativeDir = call.argument<String>("relative_dir") ?: ""
@@ -3064,12 +3056,6 @@ class MainActivity: FlutterFragmentActivity() {
}
result.success(response)
}
"getLogs" -> {
val response = withContext(Dispatchers.IO) {
Gobackend.getLogs()
}
result.success(response)
}
"getLogsSince" -> {
val index = call.argument<Int>("index") ?: 0
val response = withContext(Dispatchers.IO) {
@@ -3108,12 +3094,6 @@ class MainActivity: FlutterFragmentActivity() {
}
result.success(null)
}
"getLogCount" -> {
val count = withContext(Dispatchers.IO) {
Gobackend.getLogCount()
}
result.success(count.toInt())
}
"setLoggingEnabled" -> {
val enabled = call.argument<Boolean>("enabled") ?: false
withContext(Dispatchers.IO) {