From 98d36c7a799d8514cfa570f3cf7083c695e21e7b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Apr 2007 20:28:25 +0000 Subject: Minor code cleanups/cruft removal. git-svn-id: http://svn.drobilla.net/lad/ingen@442 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/ClientBroadcaster.cpp | 9 --------- src/libs/engine/DSSINode.cpp | 16 ---------------- src/libs/engine/DSSINode.h | 2 -- src/libs/engine/Node.h | 8 ++++---- src/libs/engine/NodeBase.h | 2 -- src/libs/engine/Patch.h | 20 +++++++++----------- 6 files changed, 13 insertions(+), 44 deletions(-) (limited to 'src/libs') diff --git a/src/libs/engine/ClientBroadcaster.cpp b/src/libs/engine/ClientBroadcaster.cpp index f0205d9f..25a289c8 100644 --- a/src/libs/engine/ClientBroadcaster.cpp +++ b/src/libs/engine/ClientBroadcaster.cpp @@ -329,14 +329,5 @@ ClientBroadcaster::send_all_objects() // (*i).second->send_all_objects(); } -/* -void -ClientBroadcaster::send_node_creation_messages(const Node* const node) -{ - // This is pretty stupid :/ in and out and back again! - for (ClientList::const_iterator i = _clients.begin(); i != _clients.end(); ++i) - node->send_creation_messages((*i).second); -} -*/ } // namespace Ingen diff --git a/src/libs/engine/DSSINode.cpp b/src/libs/engine/DSSINode.cpp index 58ff050d..ff9fd11a 100644 --- a/src/libs/engine/DSSINode.cpp +++ b/src/libs/engine/DSSINode.cpp @@ -327,20 +327,4 @@ DSSINode::get_programs() const } -/* -void -DSSINode::send_creation_messages(ClientInterface* client) const -{ - LADSPANode::send_creation_messages(client); - - for (map::const_iterator i = get_programs().begin(); - i != get_programs().end(); ++i) { - - for (Bank::const_iterator j = i->second.begin(); j != i->second.end(); ++j) - client->program_add(path(), - i->first, j->first, j->second); - } -} -*/ - } // namespace Ingen diff --git a/src/libs/engine/DSSINode.h b/src/libs/engine/DSSINode.h index 9070410e..9be7b761 100644 --- a/src/libs/engine/DSSINode.h +++ b/src/libs/engine/DSSINode.h @@ -60,8 +60,6 @@ public: void set_default_program(); const std::map& get_programs() const; - //void send_creation_messages(ClientInterface* client) const; - const Plugin* plugin() const { return _plugin; } void plugin(const Plugin* const pi) { _plugin = pi; } diff --git a/src/libs/engine/Node.h b/src/libs/engine/Node.h index 4fe43d03..93f032a8 100644 --- a/src/libs/engine/Node.h +++ b/src/libs/engine/Node.h @@ -87,14 +87,14 @@ public: /** Nodes that are connected to this Node's inputs. * (This Node depends on them) */ - virtual Raul::List* providers() = 0; - virtual void providers(Raul::List* l) = 0; + virtual Raul::List* providers() = 0; + virtual void providers(Raul::List* l) = 0; /** Nodes are are connected to this Node's outputs. * (They depend on this Node) */ - virtual Raul::List* dependants() = 0; - virtual void dependants(Raul::List* l) = 0; + virtual Raul::List* dependants() = 0; + virtual void dependants(Raul::List* l) = 0; /** The Patch this Node belongs to. */ virtual Patch* parent_patch() const = 0; diff --git a/src/libs/engine/NodeBase.h b/src/libs/engine/NodeBase.h index 6ae890f3..a1372f19 100644 --- a/src/libs/engine/NodeBase.h +++ b/src/libs/engine/NodeBase.h @@ -64,8 +64,6 @@ public: void add_to_store(ObjectStore* store); void remove_from_store(); - //void send_creation_messages(ClientInterface* client) const; - SampleRate sample_rate() const { return _srate; } size_t buffer_size() const { return _buffer_size; } size_t num_ports() const { return _ports ? _ports->size() : 0; } diff --git a/src/libs/engine/Patch.h b/src/libs/engine/Patch.h index 76290c8f..ba74d1af 100644 --- a/src/libs/engine/Patch.h +++ b/src/libs/engine/Patch.h @@ -59,8 +59,6 @@ public: void set_buffer_size(size_t size); - //void send_creation_messages(ClientInterface* client) const; - void add_to_store(ObjectStore* store); void remove_from_store(); @@ -68,7 +66,7 @@ public: // Patch specific stuff not inherited from Node - void add_node(Raul::ListNode* tn); + void add_node(Raul::ListNode* tn); Raul::ListNode* remove_node(const string& name); Raul::List& nodes() { return _nodes; } @@ -79,19 +77,19 @@ public: size_t num_ports() const; - Port* create_port(const string& name, DataType type, size_t buffer_size, bool is_output); - void add_input(Raul::ListNode* port) { _input_ports.push_back(port); } ///< Preprocesser thread - void add_output(Raul::ListNode* port) { _output_ports.push_back(port); } ///< Preprocessor thread + Port* create_port(const string& name, DataType type, size_t buffer_size, bool is_output); + void add_input(Raul::ListNode* port) { _input_ports.push_back(port); } ///< Preprocesser thread + void add_output(Raul::ListNode* port) { _output_ports.push_back(port); } ///< Preprocessor thread Raul::ListNode* remove_port(const string& name); - void add_connection(Raul::ListNode* c) { _connections.push_back(c); } + void add_connection(Raul::ListNode* c) { _connections.push_back(c); } Raul::ListNode* remove_connection(const Port* src_port, const Port* dst_port); - Raul::Array* process_order() { return _process_order; } - void process_order(Raul::Array* po) { _process_order = po; } + Raul::Array* process_order() { return _process_order; } + void process_order(Raul::Array* po) { _process_order = po; } - Raul::Array* external_ports() { return _ports; } - void external_ports(Raul::Array* pa) { _ports = pa; } + Raul::Array* external_ports() { return _ports; } + void external_ports(Raul::Array* pa) { _ports = pa; } Raul::Array* build_process_order() const; Raul::Array* build_ports_array() const; -- cgit v1.2.1