From 2e5df4c0d30fea03f0f3b176a449e17da5fc25f9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Oct 2016 14:57:41 -0400 Subject: Simplify port model code --- ingen/client/PortModel.hpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'ingen/client/PortModel.hpp') diff --git a/ingen/client/PortModel.hpp b/ingen/client/PortModel.hpp index 0d921fb1..f03e5bc1 100644 --- a/ingen/client/PortModel.hpp +++ b/ingen/client/PortModel.hpp @@ -46,7 +46,6 @@ public: inline uint32_t index() const { return _index; } inline const Atom& value() const { return get_property(_uris.ingen_value); } - inline bool connected() const { return (_connections > 0); } inline bool is_input() const { return (_direction == Direction::INPUT); } inline bool is_output() const { return (_direction == Direction::OUTPUT); } @@ -70,8 +69,6 @@ public: INGEN_SIGNAL(value_changed, void, const Atom&); INGEN_SIGNAL(voice_changed, void, uint32_t, const Atom&); INGEN_SIGNAL(activity, void, const Atom&); - INGEN_SIGNAL(connection, void, SPtr); - INGEN_SIGNAL(disconnection, void, SPtr); private: friend class ClientStore; @@ -83,27 +80,15 @@ private: : ObjectModel(uris, path) , _index(index) , _direction(dir) - , _connections(0) {} void add_child(SPtr c) { throw; } bool remove_child(SPtr c) { throw; } - void connected_to(SPtr p) { - ++_connections; - _signal_connection.emit(p); - } - - void disconnected_from(SPtr p) { - --_connections; - _signal_disconnection.emit(p); - } - void set(SPtr model); uint32_t _index; Direction _direction; - size_t _connections; }; } // namespace Client -- cgit v1.2.1