Optimize automation-event process splitting
[ardour.git] / libs / ardour / monitor_control.cc
index f4e8fbf71b07e632bc18ab3c0d97d992b6e54d0b..633ceea928629669fc3ede861499684eeb69f204 100644 (file)
@@ -40,19 +40,7 @@ MonitorControl::MonitorControl (Session& session, std::string const & name, Moni
 void
 MonitorControl::actually_set_value (double val, Controllable::GroupControlDisposition gcd)
 {
-       int v = (int) val;
-       switch (v) {
-       case MonitorAuto:
-       case MonitorInput:
-       case MonitorDisk:
-       case MonitorCue:
-               break;
-       default:
-               /* illegal value */
-               return;
-       }
-
-       _monitoring = MonitorChoice (v);
+       _monitoring = MonitorChoice ((int) val);
        AutomationControl::actually_set_value (val, gcd);
 }