diff options
| author | Mason Reed <mason@vector35.com> | 2026-03-28 15:07:27 -0700 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-03-29 21:04:13 -0700 |
| commit | 7d672a27f258a9e0057a8aa91938b735276d2897 (patch) | |
| tree | 86344c24f2ceaa8d3d9fbbb50a20fa4c94c59b52 /plugins/svd/src/lib.rs | |
| parent | a8136a2e13c283171ae5ccca7ce8b02a83e6cdb1 (diff) | |
[SVD Import] Remove "add bitfield" setting
We unconditionally add them now that bitfields are represented correctly in the type system
Diffstat (limited to 'plugins/svd/src/lib.rs')
| -rw-r--r-- | plugins/svd/src/lib.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/svd/src/lib.rs b/plugins/svd/src/lib.rs index 6ada01f9..1eb84a5f 100644 --- a/plugins/svd/src/lib.rs +++ b/plugins/svd/src/lib.rs @@ -51,27 +51,6 @@ impl AddCommentsField { } } -pub struct AddBitfieldsField; - -impl AddBitfieldsField { - pub fn field(default: bool) -> FormInputField { - FormInputField::Checkbox { - prompt: "Add Bitfields".to_string(), - default: Some(default), - value: false, - } - } - - pub fn from_form(form: &Form) -> Option<bool> { - let field = form.get_field_with_name("Add Bitfields")?; - let field_value = field.try_value_int()?; - match field_value { - 1 => Some(true), - _ => Some(false), - } - } -} - pub struct AddMemoryRegionsField; impl AddMemoryRegionsField { @@ -101,7 +80,6 @@ impl Command for LoadSVDFile { let mut load_settings = LoadSettings::from_view_settings(view); form.add_field(LoadFileField::field()); form.add_field(AddCommentsField::field(load_settings.add_comments)); - form.add_field(AddBitfieldsField::field(load_settings.add_bitfields)); form.add_field(AddMemoryRegionsField::field( load_settings.add_backing_regions, )); @@ -112,7 +90,6 @@ impl Command for LoadSVDFile { return; }; load_settings.add_comments = AddCommentsField::from_form(&form).unwrap_or(true); - load_settings.add_bitfields = AddBitfieldsField::from_form(&form).unwrap_or(true); load_settings.add_backing_regions = AddMemoryRegionsField::from_form(&form).unwrap_or(true); let file_content = match std::fs::read_to_string(&file_path) { |
