refactor(rust): remove unused code/imports to silence warnings\n\n- Drop unused backup/import helpers and redundant imports\n- Remove unnecessary mut parameter\n- Remove unused ProviderManager::add_provider\n

This commit is contained in:
Jason
2025-09-05 10:19:14 +08:00
parent 64c94804ee
commit 29367ff576
3 changed files with 6 additions and 160 deletions

View File

@@ -50,13 +50,6 @@ impl Default for ProviderManager {
}
impl ProviderManager {
/// 添加供应商
pub fn add_provider(&mut self, provider: Provider) -> Result<(), String> {
// 仅添加到管理器SSOT统一由 cc-switch/config.json 持久化)
self.providers.insert(provider.id.clone(), provider);
Ok(())
}
/// 获取所有供应商
pub fn get_all_providers(&self) -> &HashMap<String, Provider> {
&self.providers