From 76500fc464ffa1cdeec0d90c466783fe1b3ac07d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 16:21:37 +0000 Subject: Remove old/unused DSSI program API. If/when LV2 gets programs this should be implemented through the generic property based interface. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2001 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/ClientBroadcaster.cpp | 16 ---------------- src/engine/ClientBroadcaster.hpp | 2 -- src/engine/HTTPClientSender.cpp | 16 ---------------- src/engine/HTTPClientSender.hpp | 9 --------- src/engine/OSCClientSender.cpp | 18 ------------------ src/engine/OSCClientSender.hpp | 9 --------- src/engine/QueuedEngineInterface.cpp | 9 --------- src/engine/QueuedEngineInterface.hpp | 4 ---- 8 files changed, 83 deletions(-) (limited to 'src/engine') diff --git a/src/engine/ClientBroadcaster.cpp b/src/engine/ClientBroadcaster.cpp index fcc23409..6fca9b17 100644 --- a/src/engine/ClientBroadcaster.cpp +++ b/src/engine/ClientBroadcaster.cpp @@ -208,22 +208,6 @@ ClientBroadcaster::send_activity(const Path& path) } -void -ClientBroadcaster::send_program_add(const Path& node_path, int bank, int program, const string& name) -{ - for (Clients::const_iterator i = _clients.begin(); i != _clients.end(); ++i) - (*i).second->program_add(node_path, bank, program, name); -} - - -void -ClientBroadcaster::send_program_remove(const Path& node_path, int bank, int program) -{ - for (Clients::const_iterator i = _clients.begin(); i != _clients.end(); ++i) - (*i).second->program_remove(node_path, bank, program); -} - - /** Send an object. * * @param recursive If true send all children of object diff --git a/src/engine/ClientBroadcaster.hpp b/src/engine/ClientBroadcaster.hpp index 346476c7..18d7647f 100644 --- a/src/engine/ClientBroadcaster.hpp +++ b/src/engine/ClientBroadcaster.hpp @@ -73,8 +73,6 @@ public: void send_property_change(const Raul::URI& node_path, const Raul::URI& key, const Raul::Atom& value); void send_port_value(const Raul::Path& port_path, const Raul::Atom& value); void send_activity(const Raul::Path& path); - void send_program_add(const Raul::Path& node_path, int bank, int program, const std::string& name); - void send_program_remove(const Raul::Path& node_path, int bank, int program); void send_plugins_to(Shared::ClientInterface*, const NodeFactory::Plugins& plugin_list); diff --git a/src/engine/HTTPClientSender.cpp b/src/engine/HTTPClientSender.cpp index 6e4f0480..5804ce43 100644 --- a/src/engine/HTTPClientSender.cpp +++ b/src/engine/HTTPClientSender.cpp @@ -212,20 +212,4 @@ HTTPClientSender::rename(const Raul::Path& old_path, const Raul::Path& new_path) } -void -HTTPClientSender::program_add(const Raul::Path& node_path, uint32_t bank, uint32_t program, const std::string& name) -{ - /*send("/ingen/program_add", "siis", - node_path.c_str(), bank, program, name.c_str(), LO_ARGS_END);*/ -} - - -void -HTTPClientSender::program_remove(const Raul::Path& node_path, uint32_t bank, uint32_t program) -{ - /*send("/ingen/program_remove", "sii", - node_path.c_str(), bank, program, LO_ARGS_END);*/ -} - - } // namespace Ingen diff --git a/src/engine/HTTPClientSender.hpp b/src/engine/HTTPClientSender.hpp index b73272d3..2cfe6098 100644 --- a/src/engine/HTTPClientSender.hpp +++ b/src/engine/HTTPClientSender.hpp @@ -119,15 +119,6 @@ public: virtual void activity(const Raul::Path& path); - virtual void program_add(const Raul::Path& node_path, - uint32_t bank, - uint32_t program, - const std::string& program_name); - - virtual void program_remove(const Raul::Path& node_path, - uint32_t bank, - uint32_t program); - private: Engine& _engine; std::string _url; diff --git a/src/engine/OSCClientSender.cpp b/src/engine/OSCClientSender.cpp index 63a22c54..5f351b87 100644 --- a/src/engine/OSCClientSender.cpp +++ b/src/engine/OSCClientSender.cpp @@ -360,22 +360,4 @@ OSCClientSender::rename(const Path& old_path, const Path& new_path) } -/** Sends information about a program associated with a node. - */ -void -OSCClientSender::program_add(const Path& node_path, uint32_t bank, uint32_t program, const std::string& name) -{ - send("/ingen/program_add", "siis", - node_path.c_str(), bank, program, name.c_str(), LO_ARGS_END); -} - - -void -OSCClientSender::program_remove(const Path& node_path, uint32_t bank, uint32_t program) -{ - send("/ingen/program_remove", "sii", - node_path.c_str(), bank, program, LO_ARGS_END); -} - - } // namespace Ingen diff --git a/src/engine/OSCClientSender.hpp b/src/engine/OSCClientSender.hpp index d3a20f0f..404bdee7 100644 --- a/src/engine/OSCClientSender.hpp +++ b/src/engine/OSCClientSender.hpp @@ -118,15 +118,6 @@ public: virtual void activity(const Raul::Path& path); - virtual void program_add(const Raul::Path& node_path, - uint32_t bank, - uint32_t program, - const std::string& program_name); - - virtual void program_remove(const Raul::Path& node_path, - uint32_t bank, - uint32_t program); - private: Raul::URI _url; }; diff --git a/src/engine/QueuedEngineInterface.cpp b/src/engine/QueuedEngineInterface.cpp index db5f719a..e19261f7 100644 --- a/src/engine/QueuedEngineInterface.cpp +++ b/src/engine/QueuedEngineInterface.cpp @@ -246,15 +246,6 @@ QueuedEngineInterface::set_voice_value(const Path& port_path, } -void -QueuedEngineInterface::set_program(const Path& node_path, - uint32_t bank, - uint32_t program) -{ - std::cerr << "FIXME: set program" << std::endl; -} - - void QueuedEngineInterface::midi_learn(const Path& node_path) { diff --git a/src/engine/QueuedEngineInterface.hpp b/src/engine/QueuedEngineInterface.hpp index e217d879..1263c225 100644 --- a/src/engine/QueuedEngineInterface.hpp +++ b/src/engine/QueuedEngineInterface.hpp @@ -116,10 +116,6 @@ public: virtual void disconnect_all(const Raul::Path& parent_patch_path, const Raul::Path& path); - virtual void set_program(const Raul::Path& node_path, - uint32_t bank, - uint32_t program); - virtual void midi_learn(const Raul::Path& node_path); // Requests // -- cgit v1.2.1