From: David Robillard Date: Thu, 25 Dec 2014 22:30:39 +0000 (-0500) Subject: Conditionally remove possibly unused functions. X-Git-Tag: 4.0-rc1~859 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=7e25f215953a91c41f797ceab3ac658c665f100b;hp=12a7f12b0bcee20b6041b7ece27a120b130271c2;p=ardour.git Conditionally remove possibly unused functions. --- 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()