summaryrefslogtreecommitdiff
path: root/plugins/svd/src/settings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/svd/src/settings.rs')
-rw-r--r--plugins/svd/src/settings.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/plugins/svd/src/settings.rs b/plugins/svd/src/settings.rs
index fb2f680c..7f57f0bf 100644
--- a/plugins/svd/src/settings.rs
+++ b/plugins/svd/src/settings.rs
@@ -6,7 +6,6 @@ use std::path::PathBuf;
#[derive(Debug, Clone)]
pub struct LoadSettings {
pub add_backing_regions: bool,
- pub add_bitfields: bool,
pub add_comments: bool,
pub auto_load_file: Option<PathBuf>,
}
@@ -14,8 +13,6 @@ pub struct LoadSettings {
impl LoadSettings {
pub const ADD_BACKING_REGIONS_DEFAULT: bool = true;
pub const ADD_BACKING_REGIONS_SETTING: &'static str = "analysis.svd.addBackingRegions";
- pub const ADD_BITFIELDS_DEFAULT: bool = true;
- pub const ADD_BITFIELDS_SETTING: &'static str = "analysis.svd.addBitfields";
pub const ADD_COMMENTS_DEFAULT: bool = true;
pub const ADD_COMMENTS_SETTING: &'static str = "analysis.svd.addComments";
pub const AUTO_LOAD_FILE_DEFAULT: &'static str = "";
@@ -35,17 +32,6 @@ impl LoadSettings {
&add_backing_region_props.to_string(),
);
- let add_bitfields_props = json!({
- "title" : "Add Bitfields",
- "type" : "boolean",
- "default" : Self::ADD_BITFIELDS_DEFAULT,
- "description" : "Whether to add bitfields. Bitfields are not supported by Binary Ninja, so this is a workaround using unions.",
- });
- bn_settings.register_setting_json(
- Self::ADD_BITFIELDS_SETTING,
- &add_bitfields_props.to_string(),
- );
-
let add_comments_props = json!({
"title" : "Add Comments",
"type" : "boolean",
@@ -73,10 +59,6 @@ impl LoadSettings {
load_settings.add_backing_regions =
settings.get_bool_with_opts(Self::ADD_BACKING_REGIONS_SETTING, &mut query_opts);
}
- if settings.contains(Self::ADD_BITFIELDS_SETTING) {
- load_settings.add_bitfields =
- settings.get_bool_with_opts(Self::ADD_BITFIELDS_SETTING, &mut query_opts);
- }
if settings.contains(Self::ADD_COMMENTS_SETTING) {
load_settings.add_comments =
settings.get_bool_with_opts(Self::ADD_COMMENTS_SETTING, &mut query_opts);
@@ -97,7 +79,6 @@ impl Default for LoadSettings {
fn default() -> Self {
Self {
add_backing_regions: Self::ADD_BACKING_REGIONS_DEFAULT,
- add_bitfields: Self::ADD_BITFIELDS_DEFAULT,
add_comments: Self::ADD_COMMENTS_DEFAULT,
auto_load_file: None,
}