summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-14 14:57:41 -0400
committerDavid Robillard <d@drobilla.net>2016-10-14 16:27:16 -0400
commit2e5df4c0d30fea03f0f3b176a449e17da5fc25f9 (patch)
treea0e136147bcadbf8c69dc3acf9f279402ef4f2e3 /ingen
parentc16ad68648812a8c4eb90e8666764959b166ac13 (diff)
downloadingen-2e5df4c0d30fea03f0f3b176a449e17da5fc25f9.tar.gz
ingen-2e5df4c0d30fea03f0f3b176a449e17da5fc25f9.tar.bz2
ingen-2e5df4c0d30fea03f0f3b176a449e17da5fc25f9.zip
Simplify port model code
Diffstat (limited to 'ingen')
-rw-r--r--ingen/client/PortModel.hpp15
1 files changed, 0 insertions, 15 deletions
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<PortModel>);
- INGEN_SIGNAL(disconnection, void, SPtr<PortModel>);
private:
friend class ClientStore;
@@ -83,27 +80,15 @@ private:
: ObjectModel(uris, path)
, _index(index)
, _direction(dir)
- , _connections(0)
{}
void add_child(SPtr<ObjectModel> c) { throw; }
bool remove_child(SPtr<ObjectModel> c) { throw; }
- void connected_to(SPtr<PortModel> p) {
- ++_connections;
- _signal_connection.emit(p);
- }
-
- void disconnected_from(SPtr<PortModel> p) {
- --_connections;
- _signal_disconnection.emit(p);
- }
-
void set(SPtr<ObjectModel> model);
uint32_t _index;
Direction _direction;
- size_t _connections;
};
} // namespace Client