From 99524eb321120773c39ca357396603eb32cffd2c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Sep 2007 01:25:40 +0000 Subject: Strip a bunch of old useless code. git-svn-id: http://svn.drobilla.net/lad/ingen@735 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/ClientBroadcaster.cpp | 57 ----------------------------------- 1 file changed, 57 deletions(-) (limited to 'src/libs/engine/ClientBroadcaster.cpp') diff --git a/src/libs/engine/ClientBroadcaster.cpp b/src/libs/engine/ClientBroadcaster.cpp index 6193b586..94452e73 100644 --- a/src/libs/engine/ClientBroadcaster.cpp +++ b/src/libs/engine/ClientBroadcaster.cpp @@ -102,51 +102,6 @@ ClientBroadcaster::send_error(const string& msg) void ClientBroadcaster::send_plugins_to(ClientInterface* client, const list& plugin_list) { -#if 0 - // FIXME: This probably isn't actually thread safe - const list plugs = plugin_list; // make a copy - - const Plugin* plugin; - - // FIXME FIXME FIXME - OSCClientSender* osc_client = dynamic_cast(client); - assert(osc_client); - - lo_timetag tt; - lo_timetag_now(&tt); - lo_bundle b = lo_bundle_new(tt); - lo_message m = lo_message_new(); - list msgs; - - lo_message_add_int32(m, plugs.size()); - lo_bundle_add_message(b, "/om/num_plugins", m); - msgs.push_back(m); - - for (list::const_iterator j = plugs.begin(); j != plugs.end(); ++j) { - plugin = (*j); - m = lo_message_new(); - - lo_message_add_string(m, plugin->type_string()); - lo_message_add_string(m, plugin->uri().c_str()); - lo_message_add_string(m, plugin->name().c_str()); - lo_bundle_add_message(b, "/om/plugin", m); - msgs.push_back(m); - if (lo_bundle_length(b) > 1024) { - lo_send_bundle(osc_client->address(), b); - lo_bundle_free(b); - b = lo_bundle_new(tt); - } - } - - if (lo_bundle_length(b) > 0) { - lo_send_bundle(osc_client->address(), b); - lo_bundle_free(b); - } else { - lo_bundle_free(b); - } - for (list::const_iterator i = msgs.begin(); i != msgs.end(); ++i) - lo_message_free(*i); -#endif client->transfer_begin(); for (list::const_iterator i = plugin_list.begin(); i != plugin_list.end(); ++i) { @@ -310,16 +265,4 @@ ClientBroadcaster::send_rename(const string& old_path, const string& new_path) } -/** Sends all GraphObjects known to the engine. - */ -void -ClientBroadcaster::send_all_objects() -{ - cerr << "FIXME: send_all" << endl; - - //for (Clients::const_iterator i = _clients.begin(); i != _clients.end(); ++i) - // (*i).second->send_all_objects(); -} - - } // namespace Ingen -- cgit v1.2.1