chore(tauri): remove dead code warnings and drop unused uuid dep

- Delete unused Provider::new, ProviderManager::get_current_provider
- Delete unused AppState::reload
- Remove uuid crate and related imports
- Keep functionality unchanged; frontend uses ID string for current provider
This commit is contained in:
Jason
2025-08-25 21:41:35 +08:00
parent dac8ebe03b
commit 78bc0a1a31
5 changed files with 3 additions and 66 deletions

30
src-tauri/Cargo.lock generated
View File

@@ -103,8 +103,6 @@ dependencies = [
"tauri-plugin-log",
"tauri-plugin-opener",
"tauri-plugin-shell",
"tauri-plugin-store",
"uuid",
]
[[package]]
@@ -4180,22 +4178,6 @@ dependencies = [
"tokio",
]
[[package]]
name = "tauri-plugin-store"
version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d85dd80d60a76ee2c2fdce09e9ef30877b239c2a6bb76e6d7d03708aa5f13a19"
dependencies = [
"dunce",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
"thiserror 2.0.16",
"tokio",
"tracing",
]
[[package]]
name = "tauri-runtime"
version = "2.8.0"
@@ -4432,21 +4414,9 @@ dependencies = [
"pin-project-lite",
"slab",
"socket2",
"tokio-macros",
"windows-sys 0.59.0",
]
[[package]]
name = "tokio-macros"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.106",
]
[[package]]
name = "tokio-util"
version = "0.7.16"