Remove unnecessary/unused template parameter from canvas sysex flags.
[ardour.git] / gtk2_ardour / editor_audiotrack.cc
index 43f63eed7901abfc2fa1cc96008d6233e0264308..7e821f0e5ee67fe8680c829a27d0448d9804ad4f 100644 (file)
 using namespace ARDOUR;
 using namespace PBD;
 
-void
-Editor::set_loop_from_selection (bool play)
-{
-       if (session == 0 || selection->time.empty()) {
-               return;
-       }
-
-       nframes_t start = selection->time[clicked_selection].start;
-       nframes_t end = selection->time[clicked_selection].end;
-       
-       set_loop_range (start, end,  _("set loop range from selection"));
-
-       if (play) {
-               session->request_play_loop (true);
-               session->request_locate (start, true);
-       }
-}
-
-void
-Editor::set_punch_from_selection ()
-{
-       if (session == 0 || selection->time.empty()) {
-               return;
-       }
-
-       nframes_t start = selection->time[clicked_selection].start;
-       nframes_t end = selection->time[clicked_selection].end;
-       
-       set_punch_range (start, end,  _("set punch range from selection"));
-}
-
 void
 Editor::set_show_waveforms (bool yn)
 {
@@ -142,6 +111,7 @@ Editor::toggle_meter_updating()
        } else {
                stop_updating ();
        }
+       track_canvas_allocate(track_canvas->get_allocation());
 }
 
 void