refactor(ipc): remove unused commands

This commit is contained in:
Tunglies
2026-09-06 04:38:46 +08:00
parent 4ed474706a
commit ee497cc65d
10 changed files with 2 additions and 131 deletions
+1 -6
View File
@@ -4,7 +4,7 @@ use anyhow::{Context as _, anyhow};
use clash_verge_logging::{Type, logging};
use serde_yaml_ng::Mapping;
use smartstring::alias::String;
use std::collections::{HashMap, HashSet};
use std::collections::HashMap;
#[tauri::command]
pub async fn get_runtime_config() -> CmdResult<Option<Mapping>> {
@@ -27,11 +27,6 @@ pub async fn get_runtime_yaml() -> CmdResult<String> {
.stringify_err()
}
#[tauri::command]
pub async fn get_runtime_exists() -> CmdResult<HashSet<String>> {
Ok(Config::runtime().await.latest_arc().exists_keys.clone())
}
#[tauri::command]
pub async fn get_runtime_logs() -> CmdResult<HashMap<String, Vec<(String, String)>>> {
Ok(Config::runtime().await.latest_arc().chain_logs.clone())