remove Auditioner::prepare_playlist() - not used
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 25 Jul 2017 15:28:19 +0000 (11:28 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 18 Sep 2017 15:40:53 +0000 (11:40 -0400)
libs/ardour/ardour/auditioner.h
libs/ardour/auditioner.cc

index fc52c7e6f068ef90f514895615f344cd69118f1d..ffc0ddb331a7edef3aee805f05d4e9818d61f712 100644 (file)
@@ -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); }}
 
        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;
        int play_audition (framecnt_t nframes);
 
        MonitorState monitoring_state () const;
index 98d4f6c92a652299bec1b66f386c691e331944cf..b10ac2ca44d7124dcd31eea8ab5287bd4babc8a8 100644 (file)
@@ -255,26 +255,6 @@ Auditioner::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_fram
        return 0;
 }
 
        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<AudioPlaylist> apl = boost::dynamic_pointer_cast<AudioPlaylist>(playlist());
-       assert(apl);
-
-       apl->clear ();
-       return *apl;
-}
-
 void
 Auditioner::audition_region (boost::shared_ptr<Region> region)
 {
 void
 Auditioner::audition_region (boost::shared_ptr<Region> region)
 {