From a7431e21db0cfd570eb77cec021e7ef1d1e7115d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 25 Jul 2017 11:28:19 -0400 Subject: [PATCH] remove Auditioner::prepare_playlist() - not used --- libs/ardour/ardour/auditioner.h | 2 -- libs/ardour/auditioner.cc | 20 -------------------- 2 files changed, 22 deletions(-) diff --git a/libs/ardour/ardour/auditioner.h b/libs/ardour/ardour/auditioner.h index fc52c7e6f0..ffc0ddb331 100644 --- a/libs/ardour/ardour/auditioner.h +++ b/libs/ardour/ardour/auditioner.h @@ -50,8 +50,6 @@ class LIBARDOUR_API Auditioner : public Track void seek_to_frame (frameoffset_t pos) { if (_seek_frame < 0 && !_seeking) { _seek_frame = pos; }} void seek_to_percent (float const pos) { if (_seek_frame < 0 && !_seeking) { _seek_frame = floorf(length * pos / 100.0); }} - ARDOUR::AudioPlaylist& prepare_playlist (); - int play_audition (framecnt_t nframes); MonitorState monitoring_state () const; diff --git a/libs/ardour/auditioner.cc b/libs/ardour/auditioner.cc index 98d4f6c92a..b10ac2ca44 100644 --- a/libs/ardour/auditioner.cc +++ b/libs/ardour/auditioner.cc @@ -255,26 +255,6 @@ Auditioner::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_fram return 0; } -AudioPlaylist& -Auditioner::prepare_playlist () -{ - // used by CrossfadeEditor::audition() - - _midi_audition = false; - - if (_synth_added) { - remove_processor(asynth); - _synth_added = false; - } - - // FIXME auditioner is still audio-only - boost::shared_ptr apl = boost::dynamic_pointer_cast(playlist()); - assert(apl); - - apl->clear (); - return *apl; -} - void Auditioner::audition_region (boost::shared_ptr region) { -- 2.30.2