diff options
-rw-r--r-- | libs/pbd/enums.cc | 2 | ||||
-rw-r--r-- | libs/pbd/pbd/controllable.h | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/libs/pbd/enums.cc b/libs/pbd/enums.cc index 559af3a307..7081503cb1 100644 --- a/libs/pbd/enums.cc +++ b/libs/pbd/enums.cc @@ -40,8 +40,6 @@ setup_libpbd_enums () #define REGISTER_CLASS_ENUM(t,e) i.push_back (t::e); s.push_back (#e) REGISTER_CLASS_ENUM (Controllable, Toggle); - REGISTER_CLASS_ENUM (Controllable, Discrete); REGISTER_CLASS_ENUM (Controllable, GainLike); - REGISTER_CLASS_ENUM (Controllable, IntegerOnly); REGISTER (controllable_flags); } diff --git a/libs/pbd/pbd/controllable.h b/libs/pbd/pbd/controllable.h index 864a68b1a8..7379f36027 100644 --- a/libs/pbd/pbd/controllable.h +++ b/libs/pbd/pbd/controllable.h @@ -37,9 +37,7 @@ class Controllable : public PBD::StatefulDestructible { public: enum Flag { Toggle = 0x1, - Discrete = 0x2, - GainLike = 0x4, - IntegerOnly = 0x8 + GainLike = 0x2, }; Controllable (const std::string& name, Flag f = Flag (0)); @@ -79,9 +77,7 @@ class Controllable : public PBD::StatefulDestructible { void set_touching (bool yn) { _touching = yn; } bool is_toggle() const { return _flags & Toggle; } - bool is_discrete() const { return _flags & Discrete; } bool is_gain_like() const { return _flags & GainLike; } - bool is_integral_only() const { return _flags & IntegerOnly; } virtual double lower() const { return 0.0; } virtual double upper() const { return 1.0; } @@ -89,8 +85,6 @@ class Controllable : public PBD::StatefulDestructible { Flag flags() const { return _flags; } void set_flags (Flag f); - virtual uint32_t get_discrete_values (std::list<float>&) { return 0; /* no values returned */ } - static Controllable* by_id (const PBD::ID&); static Controllable* by_name (const std::string&); static const std::string xml_node_name; |