refactor: remove unused struct members and methods
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
10
src/args.rs
10
src/args.rs
@@ -190,13 +190,3 @@ impl FromStr for KeyValue {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl KeyValue {
|
||||
pub fn key(&self) -> &str {
|
||||
&self.key
|
||||
}
|
||||
|
||||
pub fn value(&self) -> &str {
|
||||
&self.value
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ pub struct Settings {
|
||||
pub list_format: Vec<ColumnConfig>,
|
||||
pub human_readable: bool,
|
||||
pub output_format: Option<String>,
|
||||
pub verbose: u8,
|
||||
pub quiet: bool,
|
||||
pub force: bool,
|
||||
pub server: Option<ServerConfig>,
|
||||
@@ -46,12 +45,6 @@ pub struct Settings {
|
||||
pub digest: Option<String>,
|
||||
}
|
||||
|
||||
impl Settings {
|
||||
pub fn verbose(&self) -> u8 {
|
||||
self.verbose
|
||||
}
|
||||
}
|
||||
|
||||
impl Settings {
|
||||
/// Create unified settings from config and args with proper priority
|
||||
pub fn new(args: &Args, default_dir: PathBuf) -> Result<Self> {
|
||||
|
||||
@@ -32,16 +32,6 @@ pub struct AppState {
|
||||
pub password_hash: Option<String>,
|
||||
}
|
||||
|
||||
impl AppState {
|
||||
pub fn password(&self) -> Option<&String> {
|
||||
self.password.as_ref()
|
||||
}
|
||||
|
||||
pub fn password_hash(&self) -> Option<&String> {
|
||||
self.password_hash.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, ToSchema)]
|
||||
#[schema(description = "Standard API response wrapper containing success status, data payload, and error information")]
|
||||
pub struct ApiResponse<T> {
|
||||
|
||||
Reference in New Issue
Block a user