mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-11-20 07:52:52 +08:00
7dec90e982
Delete Rust items marked #[allow(dead_code)] that nothing in src/ or tests/ references: get_opencode_env_path, get_provider_config_path and its only helper sanitize_provider_name, OpenClawAgents, categorize_error, HandlerConfig with its four constants, update_proxy, is_proxy_enabled, and CODEX_CLIENT_REGEX. Drop dependencies no code imports: tower-http and http-body in Cargo.toml, and @radix-ui/react-accordion, react-checkbox, react-scroll-area, and react-tabs in package.json. Delete files nothing imports: ListItemRow, the accordion, card, scroll-area, table, tabs, and toggle-row UI components, useDebouncedValue, and scripts/measure-renderer.mjs. Delete 54 one-line doc comments in src-tauri/src/commands that only repeat the function name, and the step labels in ClaudeAdapter::is_github_copilot. The note on why the base_url fallback exists stays.