diff options
author | David Robillard <d@drobilla.net> | 2007-09-20 01:25:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-20 01:25:40 +0000 |
commit | 99524eb321120773c39ca357396603eb32cffd2c (patch) | |
tree | aca911f6109756b865f8315e27a13e57f6c9b3b4 /src/libs/engine/events/DestroyEvent.cpp | |
parent | 0a9c38574cafd3e77234d220a18241025098bbb3 (diff) | |
download | ingen-99524eb321120773c39ca357396603eb32cffd2c.tar.gz ingen-99524eb321120773c39ca357396603eb32cffd2c.tar.bz2 ingen-99524eb321120773c39ca357396603eb32cffd2c.zip |
Strip a bunch of old useless code.
git-svn-id: http://svn.drobilla.net/lad/ingen@735 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/DestroyEvent.cpp')
-rw-r--r-- | src/libs/engine/events/DestroyEvent.cpp | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/src/libs/engine/events/DestroyEvent.cpp b/src/libs/engine/events/DestroyEvent.cpp index 38a8fe3e..2c4fd7da 100644 --- a/src/libs/engine/events/DestroyEvent.cpp +++ b/src/libs/engine/events/DestroyEvent.cpp @@ -54,24 +54,6 @@ DestroyEvent::DestroyEvent(Engine& engine, SharedPtr<Responder> responder, Frame assert(_source); } -#if 0 -DestroyEvent::DestroyEvent(Engine& engine, SharedPtr<Responder> responder, FrameTime time, QueuedEventSource* source, Node* node, bool block) -: QueuedEvent(engine, responder, block, source), - _path(node->path()), - _store_iterator(engine.object_store()->objects().end()) - _object(node), - _node(node), - _port(NULL), - _driver_port(NULL), - _patch_node_listnode(NULL), - _patch_port_listnode(NULL), - _ports_array(NULL), - _compiled_patch(NULL), - _disconnect_node_event(NULL), - _disconnect_port_event(NULL) -{ -} -#endif DestroyEvent::~DestroyEvent() { @@ -83,17 +65,14 @@ DestroyEvent::~DestroyEvent() void DestroyEvent::pre_process() { - //if (_object == NULL) { - _store_iterator = _engine.object_store()->find(_path); - //_object = _engine.object_store()->find_object(_path); + _store_iterator = _engine.object_store()->find(_path); - if (_store_iterator != _engine.object_store()->objects().end()) { - _node = dynamic_cast<Node*>(_store_iterator->second); + if (_store_iterator != _engine.object_store()->objects().end()) { + _node = dynamic_cast<Node*>(_store_iterator->second); - if (!_node) - _port = dynamic_cast<Port*>(_store_iterator->second); - } - //} + if (!_node) + _port = dynamic_cast<Port*>(_store_iterator->second); + } if (_store_iterator != _engine.object_store()->objects().end()) { _table = _engine.object_store()->remove(_store_iterator); |