Conditionally remove possibly unused functions.
authorDavid Robillard <d@drobilla.net>
Thu, 25 Dec 2014 22:30:39 +0000 (17:30 -0500)
committerDavid Robillard <d@drobilla.net>
Fri, 26 Dec 2014 01:07:57 +0000 (20:07 -0500)
libs/ardour/ladspa_plugin.cc
libs/ardour/plugin_manager.cc

index 8b2a4f75df0dcb96f9a307a632dbfb2e13211517..db28d6d199b074b04cc9228864164f39fc0b0da4 100644 (file)
@@ -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)
index b6100f74b5d647dc2c81906caeedcc8b7c0cf94f..01853ccdb38ecd8a4e328068430b36e60da0ee06 100644 (file)
@@ -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()