refactor: remove unused MetaPluginType::None and related code
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
08001aa2d0
commit
25e41c46a9
@@ -180,12 +180,9 @@ fn build_meta_plugin_table() -> Table {
|
||||
meta_plugin_table.set_titles(row!(
|
||||
b->"Type",
|
||||
b->"Found",
|
||||
b->"Default",
|
||||
b->"Binary",
|
||||
b->"Args"));
|
||||
|
||||
let default_type = meta_plugin::default_meta_plugin_type();
|
||||
|
||||
for meta_plugin_type in MetaPluginType::iter() {
|
||||
let meta_plugin_program: MetaPluginProgram = match &META_PLUGIN_PROGRAMS[meta_plugin_type.clone()] {
|
||||
Some(meta_plugin_program) => meta_plugin_program.clone(),
|
||||
@@ -196,18 +193,12 @@ fn build_meta_plugin_table() -> Table {
|
||||
},
|
||||
};
|
||||
|
||||
let is_default = meta_plugin_type == default_type;
|
||||
|
||||
meta_plugin_table.add_row(Row::new(vec![
|
||||
Cell::new(&meta_plugin_type.to_string()),
|
||||
match meta_plugin_program.supported {
|
||||
true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)),
|
||||
false => Cell::new("No").with_style(Attr::ForegroundColor(color::RED)),
|
||||
},
|
||||
match is_default {
|
||||
true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)),
|
||||
false => Cell::new("No"),
|
||||
},
|
||||
match meta_plugin_program.program.is_empty() {
|
||||
true => {
|
||||
Cell::new("<INTERNAL>").with_style(Attr::ForegroundColor(color::BRIGHT_BLACK))
|
||||
|
||||
Reference in New Issue
Block a user