summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Patch.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-26 19:33:51 +0000
committerDavid Robillard <d@drobilla.net>2007-07-26 19:33:51 +0000
commit3f445b19aaf42ae9442a9a7e40f95b4502f06047 (patch)
tree4221e5038072da726e0f50222dbe8011a0b2c88c /src/libs/engine/Patch.cpp
parent057069ef9f2129e9f0d3bce9066d75c621282d17 (diff)
downloadingen-3f445b19aaf42ae9442a9a7e40f95b4502f06047.tar.gz
ingen-3f445b19aaf42ae9442a9a7e40f95b4502f06047.tar.bz2
ingen-3f445b19aaf42ae9442a9a7e40f95b4502f06047.zip
Trim the fat.
git-svn-id: http://svn.drobilla.net/lad/ingen@640 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Patch.cpp')
-rw-r--r--src/libs/engine/Patch.cpp65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/libs/engine/Patch.cpp b/src/libs/engine/Patch.cpp
index fb1b970e..e791a074 100644
--- a/src/libs/engine/Patch.cpp
+++ b/src/libs/engine/Patch.cpp
@@ -148,30 +148,6 @@ Patch::set_buffer_size(size_t size)
(*j)->set_buffer_size(size);
}
-#if 0
-void
-Patch::add_to_store(ObjectStore* store)
-{
- // Add self and ports
- NodeBase::add_to_store(store);
-
- // Add nodes
- for (Raul::List<Node*>::iterator j = _nodes.begin(); j != _nodes.end(); ++j)
- (*j)->add_to_store(store);
-}
-
-
-void
-Patch::remove_from_store()
-{
- // Remove self and ports
- NodeBase::remove_from_store();
-
- // Remove nodes
- for (Raul::List<Node*>::iterator j = _nodes.begin(); j != _nodes.end(); ++j)
- (*j)->remove_from_store();
-}
-#endif
// Patch specific stuff
@@ -222,28 +198,6 @@ Patch::remove_connection(const Port* src_port, const Port* dst_port)
return connection;
}
-#if 0
-/** Remove a bridge_node. Realtime safe.
- */
-Raul::ListNode<InternalNode*>*
-Patch::remove_bridge_node(const InternalNode* node)
-{
- bool found = false;
- Raul::ListNode<InternalNode*>* bridge_node = NULL;
- for (Raul::List<InternalNode*>::iterator i = _bridge_nodes.begin(); i != _bridge_nodes.end(); ++i) {
- if ((*i) == node) {
- bridge_node = _bridge_nodes.remove(i);
- found = true;
- }
- }
-
- if ( ! found)
- cerr << "WARNING: [Patch::remove_bridge_node] InternalNode not found !" << endl;
-
- return bridge_node;
-}
-#endif
-
size_t
Patch::num_ports() const
@@ -398,23 +352,4 @@ Patch::build_process_order() const
}
-/** Rename this Patch.
- *
- * This is responsible for updating the ObjectStore so the Patch can be
- * found at it's new path, as well as all it's children.
- */
-void
-Patch::set_path(const Path& new_path)
-{
- const Path old_path = path();
-
- // Update nodes
- for (Raul::List<Node*>::iterator i = _nodes.begin(); i != _nodes.end(); ++i)
- (*i)->set_path(new_path.base() + (*i)->name());
-
- // Update self
- NodeBase::set_path(new_path);
-}
-
-
} // namespace Ingen