Revert "WebSockets: properly release strips and plugins when removed"

This reverts commit f007ba6b46.
This commit is contained in:
Robin Gareus 2020-08-19 23:59:38 +02:00
parent aa69fe49f5
commit dfe2270c9f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 13 additions and 76 deletions

View file

@ -20,7 +20,6 @@
#define _ardour_surface_websockets_feedback_h_
#include <boost/shared_ptr.hpp>
#include <boost/unordered_map.hpp>
#include <glibmm/main.h>
#include "component.h"
@ -43,15 +42,9 @@ public:
private:
Glib::Threads::Mutex _client_state_lock;
PBD::ScopedConnectionList _transport_connections;
PBD::ScopedConnectionList _signal_connections;
sigc::connection _periodic_connection;
typedef boost::unordered_map<uint32_t, std::unique_ptr<PBD::ScopedConnectionList>> StripConnectionMap;
StripConnectionMap _strip_connections;
typedef boost::unordered_map<uint32_t, std::unique_ptr<PBD::ScopedConnectionList>> PluginConnectionMap;
StripConnectionMap _plugin_connections; // also holds connections to parameters
bool poll () const;
void observe_transport ();
@ -59,9 +52,6 @@ private:
void observe_strip_plugins (uint32_t, boost::shared_ptr<ARDOUR::Stripable>);
void observe_strip_plugin_param_values (uint32_t, uint32_t,
boost::shared_ptr<ARDOUR::PluginInsert>);
void on_drop_strip (uint32_t);
void on_drop_plugin (uint32_t, uint32_t);
};
#endif // _ardour_surface_websockets_feedback_h_