diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-09-29 10:00:23 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-02 18:04:40 -0600 |
commit | f470d3e856e7dee3c6003aeff0c98005822c5f90 (patch) | |
tree | 20b9f2d212195a2a7f04442e4365d6715e05e385 /libs/ardour/audio_unit.cc | |
parent | bc3b65834991b126843e85618c2f5d1d3c7e9389 (diff) |
remove all use of NO_PLUGIN_STATE #ifdef
We determined several years that we should never ever do this,
and changed the basis for the free/demo copy because of that.
Diffstat (limited to 'libs/ardour/audio_unit.cc')
-rw-r--r-- | libs/ardour/audio_unit.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index a1afd5ecee..cf268a0403 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -2061,7 +2061,6 @@ AUPlugin::set_state(const XMLNode& node, int version) return -1; } -#ifndef NO_PLUGIN_STATE if (node.children().empty()) { return -1; } @@ -2097,7 +2096,6 @@ AUPlugin::set_state(const XMLNode& node, int version) } CFRelease (propertyList); } -#endif Plugin::set_state (node, version); return ret; @@ -2593,7 +2591,7 @@ AUPluginInfo::get_presets (bool user_only) const { std::vector<Plugin::PresetRecord> p; boost::shared_ptr<CAComponent> comp; -#ifndef NO_PLUGIN_STATE + try { comp = boost::shared_ptr<CAComponent>(new CAComponent(*descriptor)); if (!comp->IsValid()) { @@ -2664,7 +2662,6 @@ AUPluginInfo::get_presets (bool user_only) const CFRelease (presets); unit->Uninitialize (); -#endif // NO_PLUGIN_STATE return p; } |