summaryrefslogtreecommitdiffstats
path: root/src/engine/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/events')
-rw-r--r--src/engine/events/CreateNodeEvent.cpp29
-rw-r--r--src/engine/events/CreateNodeEvent.hpp10
2 files changed, 9 insertions, 30 deletions
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> 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> 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> 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();