diff options
| author | Brian Potchik <brian@vector35.com> | 2020-06-20 13:28:19 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2020-06-20 13:28:19 -0400 |
| commit | 1d6edd6eb2babad933ff69203ea932fd51b478c2 (patch) | |
| tree | edd8f13cce96d5f135a292dbbae70657d9a191d5 | |
| parent | 3d9e96f84d781d1de57af895864d3183d2729a7a (diff) | |
Remove CopyValuesFrom Settings API.
| -rw-r--r-- | binaryninjaapi.h | 1 | ||||
| -rw-r--r-- | binaryninjacore.h | 1 | ||||
| -rw-r--r-- | python/settings.py | 3 | ||||
| -rw-r--r-- | settings.cpp | 6 |
4 files changed, 0 insertions, 11 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 3d48b6b4..60320769 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -5070,7 +5070,6 @@ __attribute__ ((format (printf, 1, 2))) bool DeserializeSettings(const std::string& contents, Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope); std::string SerializeSettings(Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope); - bool CopyValuesFrom(Ref<Settings> source, BNSettingsScope scope = SettingsAutoScope); bool Reset(const std::string& key, Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope); bool ResetAll(Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope, bool schemaOnly = true); diff --git a/binaryninjacore.h b/binaryninjacore.h index 384e30f3..f82b6970 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -4526,7 +4526,6 @@ __attribute__ ((format (printf, 1, 2))) BINARYNINJACOREAPI bool BNDeserializeSettings(BNSettings* settings, const char* contents, BNBinaryView* view, BNSettingsScope scope); BINARYNINJACOREAPI char* BNSerializeSettings(BNSettings* settings, BNBinaryView* view, BNSettingsScope scope); - BINARYNINJACOREAPI bool BNSettingsCopyValuesFrom(BNSettings* settings, BNSettings* source, BNSettingsScope scope); BINARYNINJACOREAPI bool BNSettingsReset(BNSettings* settings, const char* key, BNBinaryView* view, BNSettingsScope scope); BINARYNINJACOREAPI bool BNSettingsResetAll(BNSettings* settings, BNBinaryView* view, BNSettingsScope scope, bool schemaOnly); diff --git a/python/settings.py b/python/settings.py index d09a001a..e8e12fba 100644 --- a/python/settings.py +++ b/python/settings.py @@ -210,9 +210,6 @@ class Settings(object): view = view.handle return core.BNSerializeSettings(self.handle, view, scope) - def copy_values_from(self, source, scope = SettingsScope.SettingsAutoScope): - return core.BNSettingsCopyValuesFrom(self.handle, source.handle, scope) - def reset(self, key, view = None, scope = SettingsScope.SettingsAutoScope): if view is not None: view = view.handle diff --git a/settings.cpp b/settings.cpp index 26448937..e963a6d1 100644 --- a/settings.cpp +++ b/settings.cpp @@ -181,12 +181,6 @@ string Settings::SerializeSettings(Ref<BinaryView> view, BNSettingsScope scope) } -bool Settings::CopyValuesFrom(Ref<Settings> source, BNSettingsScope scope) -{ - return BNSettingsCopyValuesFrom(m_object, source->GetObject(), scope); -} - - bool Settings::Reset(const string& key, Ref<BinaryView> view, BNSettingsScope scope) { return BNSettingsReset(m_object, key.c_str(), view ? view->GetObject() : nullptr, scope); |
