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:
Andrew Phillips
2025-08-16 12:32:11 -03:00
parent 014dd380cd
commit 1c6064fdb7
3 changed files with 0 additions and 27 deletions

View File

@@ -190,13 +190,3 @@ impl FromStr for KeyValue {
} }
} }
} }
impl KeyValue {
pub fn key(&self) -> &str {
&self.key
}
pub fn value(&self) -> &str {
&self.value
}
}

View File

@@ -37,7 +37,6 @@ pub struct Settings {
pub list_format: Vec<ColumnConfig>, pub list_format: Vec<ColumnConfig>,
pub human_readable: bool, pub human_readable: bool,
pub output_format: Option<String>, pub output_format: Option<String>,
pub verbose: u8,
pub quiet: bool, pub quiet: bool,
pub force: bool, pub force: bool,
pub server: Option<ServerConfig>, pub server: Option<ServerConfig>,
@@ -46,12 +45,6 @@ pub struct Settings {
pub digest: Option<String>, pub digest: Option<String>,
} }
impl Settings {
pub fn verbose(&self) -> u8 {
self.verbose
}
}
impl Settings { impl Settings {
/// Create unified settings from config and args with proper priority /// Create unified settings from config and args with proper priority
pub fn new(args: &Args, default_dir: PathBuf) -> Result<Self> { pub fn new(args: &Args, default_dir: PathBuf) -> Result<Self> {

View File

@@ -32,16 +32,6 @@ pub struct AppState {
pub password_hash: Option<String>, 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)] #[derive(Serialize, Deserialize, ToSchema)]
#[schema(description = "Standard API response wrapper containing success status, data payload, and error information")] #[schema(description = "Standard API response wrapper containing success status, data payload, and error information")]
pub struct ApiResponse<T> { pub struct ApiResponse<T> {