From 7e25f215953a91c41f797ceab3ac658c665f100b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 25 Dec 2014 17:30:39 -0500 Subject: Conditionally remove possibly unused functions. --- libs/ardour/ladspa_plugin.cc | 4 ++-- libs/ardour/plugin_manager.cc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ardour/ladspa_plugin.cc b/libs/ardour/ladspa_plugin.cc index 8b2a4f75df..db28d6d199 100644 --- a/libs/ardour/ladspa_plugin.cc +++ b/libs/ardour/ladspa_plugin.cc @@ -792,11 +792,11 @@ LadspaPlugin::load_preset (PresetRecord r) return true; } +#ifdef HAVE_LRDF /* XXX: should be in liblrdf */ static void lrdf_remove_preset (const char* /*source*/, const char *setting_uri) { -#ifdef HAVE_LRDF lrdf_statement p; lrdf_statement *q; lrdf_statement *i; @@ -830,8 +830,8 @@ lrdf_remove_preset (const char* /*source*/, const char *setting_uri) p.predicate = NULL; p.object = NULL; lrdf_remove_matches (&p); -#endif } +#endif void LadspaPlugin::do_remove_preset (string name) diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index b6100f74b5..01853ccdb3 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -370,6 +370,7 @@ PluginManager::ladspa_refresh () } } +#ifdef HAVE_LRDF static bool rdf_filter (const string &str, void* /*arg*/) { return str[0] != '.' && @@ -378,6 +379,7 @@ static bool rdf_filter (const string &str, void* /*arg*/) (str.find(".n3") == (str.length() - 3)) || (str.find(".ttl") == (str.length() - 4))); } +#endif void PluginManager::add_ladspa_presets() -- cgit v1.2.3