13
0

Remove unused dummy control class

PBD::IgnorableControllable() is no longer used.
It also was problematic, because in every case where a
Controllable is required, min/max range and usually also
get/set value are significant.
This commit is contained in:
Robin Gareus 2020-02-19 17:03:46 +01:00
parent 7f2a59ca66
commit f62fb6dd98
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -191,19 +191,6 @@ private:
static void remove (Controllable*); static void remove (Controllable*);
}; };
/* a utility class for the occasions when you need but do not have
* a Controllable
*/
class LIBPBD_API IgnorableControllable : public Controllable
{
public:
IgnorableControllable () : PBD::Controllable ("ignoreMe") {}
~IgnorableControllable () {}
void set_value (double v, PBD::Controllable::GroupControlDisposition group_override) {}
double get_value () const { return 0.0; }
};
} }
#endif /* __pbd_controllable_h__ */ #endif /* __pbd_controllable_h__ */