From b8491014a53e236255f5803fc876f848cfc82750 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 29 Jan 2018 23:55:20 +0100 Subject: Update plugin classification * dedicated API for classes (effect, instrument, util) * prepare for tags (rather than categories) * prepare removal of per-plugin in_category() API --- libs/ardour/lv2_plugin.cc | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'libs/ardour/lv2_plugin.cc') diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 92badc4b5a..941dac1615 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -3411,31 +3411,6 @@ LV2PluginInfo::get_presets (bool /*user_only*/) const return p; } -bool -LV2PluginInfo::in_category (const std::string &c) const -{ - // TODO use untranslated lilv_plugin_get_class() - // match gtk2_ardour/plugin_selector.cc - return category == c; -} - -bool -LV2PluginInfo::is_instrument () const -{ - if (category == "Instrument") { - return true; - } -#if 1 - /* until we make sure that category remains untranslated in the lv2.ttl spec - * and until most instruments also classify themselves as such, there's a 2nd check: - */ - if (n_inputs.n_midi() > 0 && n_inputs.n_audio() == 0 && n_outputs.n_audio() > 0) { - return true; - } -#endif - return false; -} - PluginInfoList* LV2PluginInfo::discover() { -- cgit v1.2.3