diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-29 01:36:31 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-29 02:57:51 +0200 |
commit | 1888104f8d60d8806b8ae7add3531aeebcbdce12 (patch) | |
tree | ef9688d412944f46528c82975a38f63fbe2fccd9 /gtk2_ardour/processor_box.cc | |
parent | 25f65d0b9009adc409972ee4b2591c611e8a48ec (diff) |
remove "Lua DSP Proc" context meuu
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index ac3dc96bac..7de78534a9 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -2374,49 +2374,6 @@ ProcessorBox::choose_plugin () /** @return true if an error occurred, otherwise false */ bool -ProcessorBox::choose_lua () -{ - LuaScriptInfoPtr spi; - - ScriptSelector ss (_("Add Lua DSP Processor"), LuaScriptInfo::DSP); - switch (ss.run ()) { - case Gtk::RESPONSE_ACCEPT: - spi = ss.script(); - break; - default: - return true; - } - ss.hide (); - - PluginPtr p; - try { - LuaPluginInfoPtr lpi (new LuaPluginInfo(spi)); - p = (lpi->load (*_session)); - } catch (...) { - string msg = _( - "Failed to instantiate Lua DSP Processor,\n" - "probably because the script is invalid (no dsp function)."); - MessageDialog am (msg); - am.run (); - return true; - } - - boost::shared_ptr<Processor> processor (new PluginInsert (*_session, p)); - - Route::ProcessorStreams err_streams; - if (_route->add_processor_by_index (processor, _placement, &err_streams, Config->get_new_plugins_active ())) { - string msg = _( - "Failed to add Lua DSP Processor at the given position,\n" - "probably because the I/O configuration of the plugins\n" - "could not match the configuration of this track."); - MessageDialog am (msg); - am.run (); - } - return false; -} - -/** @return true if an error occurred, otherwise false */ -bool ProcessorBox::use_plugins (const SelectedPlugins& plugins) { for (SelectedPlugins::const_iterator p = plugins.begin(); p != plugins.end(); ++p) { @@ -3655,8 +3612,6 @@ ProcessorBox::register_actions () myactions.register_action (processor_box_actions, X_("newplugin"), _("New Plugin"), sigc::ptr_fun (ProcessorBox::rb_choose_plugin)); - act = myactions.register_action (processor_box_actions, X_("newlua"), _("New Lua DSP"), - sigc::ptr_fun (ProcessorBox::rb_choose_lua)); act = myactions.register_action (processor_box_actions, X_("newinsert"), _("New Insert"), sigc::ptr_fun (ProcessorBox::rb_choose_insert)); ActionManager::engine_sensitive_actions.push_back (act); @@ -3762,15 +3717,6 @@ ProcessorBox::rb_choose_plugin () } void -ProcessorBox::rb_choose_lua () -{ - if (_current_processor_box == 0) { - return; - } - _current_processor_box->choose_lua (); -} - -void ProcessorBox::rb_choose_insert () { if (_current_processor_box == 0) { |