refactor: remove redundant configure_options and default_options methods

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-27 10:43:30 -03:00
parent 5d518711d5
commit b7bf9b20de
14 changed files with 0 additions and 114 deletions

View File

@@ -209,14 +209,6 @@ impl MetaPlugin for MagicFileMetaPlugin {
"magic_file".to_string()
}
fn configure_options(&mut self, options: &std::collections::HashMap<String, serde_yaml::Value>) -> anyhow::Result<()> {
if let Some(max_buffer_size) = options.get("max_buffer_size") {
if let Some(size) = max_buffer_size.as_u64() {
self.max_buffer_size = size as usize;
}
}
Ok(())
}
fn outputs(&self) -> &std::collections::HashMap<String, serde_yaml::Value> {
self.base.outputs()
@@ -230,11 +222,6 @@ impl MetaPlugin for MagicFileMetaPlugin {
vec!["mime_type".to_string(), "mime_encoding".to_string(), "file_type".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
let mut options = std::collections::HashMap::new();
options.insert("max_buffer_size".to_string(), serde_yaml::Value::Number(serde_yaml::Number::from(PIPESIZE as i64)));
options
}
fn options(&self) -> &std::collections::HashMap<String, serde_yaml::Value> {
self.base.options()