From 340a260b307ff5948fd3cfaba278332f8337fafe Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 11 Oct 2022 16:23:20 +0200 Subject: [PATCH] Remove old LRDF VST presets Ardour has not been using RDF for VST2 presets since at least 10 years. --- libs/ardour/ardour/plugin_manager.h | 6 +--- libs/ardour/plugin_manager.cc | 44 ++--------------------------- 2 files changed, 3 insertions(+), 47 deletions(-) diff --git a/libs/ardour/ardour/plugin_manager.h b/libs/ardour/ardour/plugin_manager.h index 636f457231..221bab391c 100644 --- a/libs/ardour/ardour/plugin_manager.h +++ b/libs/ardour/ardour/plugin_manager.h @@ -325,11 +325,7 @@ private: void vst3_refresh (bool cache_only); void add_lrdf_data (const std::string &path); - void add_ladspa_presets (); - void add_windows_vst_presets (); - void add_mac_vst_presets (); - void add_lxvst_presets (); - void add_presets (std::string domain); + void add_lrdf_presets (std::string domain); #ifdef AUDIOUNIT_SUPPORT void au_refresh (bool cache_only = false); diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 743208d5f1..9bae3cd540 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -271,24 +271,8 @@ PluginManager::PluginManager () } add_lrdf_data(lrdf_path); - add_ladspa_presets(); -#ifdef WINDOWS_VST_SUPPORT - if (Config->get_use_windows_vst ()) { - add_windows_vst_presets (); - } -#endif /* WINDOWS_VST_SUPPORT */ -#ifdef LXVST_SUPPORT - if (Config->get_use_lxvst()) { - add_lxvst_presets(); - } -#endif /* Native LinuxVST support*/ - -#ifdef MACVST_SUPPORT - if (Config->get_use_macvst ()) { - add_mac_vst_presets (); - } -#endif + add_lrdf_presets ("ladspa"); if ((s = getenv ("VST_PATH"))) { windows_vst_path = s; @@ -833,31 +817,7 @@ static bool rdf_filter (const string &str, void* /*arg*/) #endif void -PluginManager::add_ladspa_presets() -{ - add_presets ("ladspa"); -} - -void -PluginManager::add_windows_vst_presets() -{ - add_presets ("windows-vst"); -} - -void -PluginManager::add_mac_vst_presets() -{ - add_presets ("mac-vst"); -} - -void -PluginManager::add_lxvst_presets() -{ - add_presets ("lxvst"); -} - -void -PluginManager::add_presets(string domain) +PluginManager::add_lrdf_presets(string domain) { #ifdef HAVE_LRDF vector presets;