From 990007a6c0317aa0cce97f4e095bc98745c60c4d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Oct 2011 04:09:37 +0000 Subject: Use port type instead of buffer type where appropriate. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3524 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PortImpl.hpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/server/PortImpl.hpp') diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp index 7baaf089..2316a1d9 100644 --- a/src/server/PortImpl.hpp +++ b/src/server/PortImpl.hpp @@ -20,7 +20,6 @@ #include #include -#include #include "raul/Array.hpp" #include "raul/Atom.hpp" @@ -123,11 +122,7 @@ public: uint32_t index() const { return _index; } - typedef std::set PortTypes; - - const PortTypes& types() const { return _types; } - - inline bool is_a(PortType type) const { return _types.find(type) != _types.end(); } + inline bool is_a(PortType type) const { return _type == type; } PortType buffer_type() const; @@ -143,7 +138,6 @@ public: } void set_buffer_size(Context& context, BufferFactory& bufs, size_t size); - void set_buffer_type(PortType type); void broadcast(bool b) { _broadcast = b; } bool broadcast() { return _broadcast; } @@ -171,8 +165,7 @@ protected: uint32_t _index; uint32_t _poly; uint32_t _buffer_size; - PortType _buffer_type; - std::set _types; + PortType _type; Raul::Atom _value; Raul::Atom _min; Raul::Atom _max; -- cgit v1.2.1