From 96f839e64de70a23210847e322d24690299287fe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 12 May 2009 22:08:35 +0000 Subject: Remove deprecated new_node interface in favour of URI hackery. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1991 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/events/CreateNodeEvent.cpp | 29 +++++++++-------------------- src/engine/events/CreateNodeEvent.hpp | 10 ---------- 2 files changed, 9 insertions(+), 30 deletions(-) (limited to 'src/engine/events') diff --git a/src/engine/events/CreateNodeEvent.cpp b/src/engine/events/CreateNodeEvent.cpp index d88afb89..41470d45 100644 --- a/src/engine/events/CreateNodeEvent.cpp +++ b/src/engine/events/CreateNodeEvent.cpp @@ -47,26 +47,15 @@ CreateNodeEvent::CreateNodeEvent(Engine& engine, SharedPtr responder, , _compiled_patch(NULL) , _node_already_exists(false) { -} - - -/** DEPRECATED: Construct from type, library name, and plugin label. - * - * Do not use. - */ -CreateNodeEvent::CreateNodeEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& path, - const string& plugin_type, const string& plugin_lib, const string& plugin_label, bool polyphonic) -: QueuedEvent(engine, responder, timestamp), - _path(path), - _plugin_type(plugin_type), - _plugin_lib(plugin_lib), - _plugin_label(plugin_label), - _polyphonic(polyphonic), - _patch(NULL), - _node(NULL), - _compiled_patch(NULL), - _node_already_exists(false) -{ + if (_plugin_uri.substr(0, 3) == "om:") { + size_t colon = 2; + _plugin_uri = _plugin_uri.substr(colon + 1); + if ((colon = _plugin_uri.find(":")) == string::npos) + return; + _plugin_type = _plugin_uri.substr(0, colon + 1); + _plugin_label = _plugin_uri.substr(colon + 1); + _plugin_uri = ""; + } } diff --git a/src/engine/events/CreateNodeEvent.hpp b/src/engine/events/CreateNodeEvent.hpp index 6b9e4f30..61fd2c5c 100644 --- a/src/engine/events/CreateNodeEvent.hpp +++ b/src/engine/events/CreateNodeEvent.hpp @@ -47,16 +47,6 @@ public: const string& plugin_uri, bool poly); - // DEPRECATED - CreateNodeEvent(Engine& engine, - SharedPtr responder, - SampleCount timestamp, - const string& node_path, - const string& plugin_type, - const string& lib_name, - const string& plugin_label, - bool poly); - void pre_process(); void execute(ProcessContext& context); void post_process(); -- cgit v1.2.1