From 3a14559a9a7adc851facef5dab61e2fb32aa8897 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Jun 2021 09:56:50 -0400 Subject: [PATCH] Remove dead code in ContourDesignControlProtocol These were identical to SessionController::prev_marker() and SessionController::next_marker(), but weren't actually used. --- libs/surfaces/contourdesign/contourdesign.cc | 26 -------------------- libs/surfaces/contourdesign/contourdesign.h | 3 --- 2 files changed, 29 deletions(-) diff --git a/libs/surfaces/contourdesign/contourdesign.cc b/libs/surfaces/contourdesign/contourdesign.cc index a072c3573b..7b56238337 100644 --- a/libs/surfaces/contourdesign/contourdesign.cc +++ b/libs/surfaces/contourdesign/contourdesign.cc @@ -555,32 +555,6 @@ ContourDesignControlProtocol::handle_button_release (unsigned short btn) } } - -void -ContourDesignControlProtocol::prev_marker_keep_rolling () -{ - samplepos_t pos = session->locations()->first_mark_before (session->transport_sample()); - - if (pos >= 0) { - - session->request_locate (pos); - } else { - session->goto_start (); - } -} - -void -ContourDesignControlProtocol::next_marker_keep_rolling () -{ - samplepos_t pos = session->locations()->first_mark_after (session->transport_sample()); - - if (pos >= 0) { - session->request_locate (pos); - } else { - session->goto_end(); - } -} - void ContourDesignControlProtocol::jog_event_backward () { diff --git a/libs/surfaces/contourdesign/contourdesign.h b/libs/surfaces/contourdesign/contourdesign.h index 947d6ce2cf..d614e80837 100644 --- a/libs/surfaces/contourdesign/contourdesign.h +++ b/libs/surfaces/contourdesign/contourdesign.h @@ -97,9 +97,6 @@ public: static const int num_shuttle_speeds = 7; - void prev_marker_keep_rolling (); - void next_marker_keep_rolling (); - void jump_forward (JumpDistance dist); void jump_backward (JumpDistance dist);