summaryrefslogtreecommitdiff
path: root/libs/ardour/track.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r--libs/ardour/track.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc
index 058c9aef54..f1e2c86a1b 100644
--- a/libs/ardour/track.cc
+++ b/libs/ardour/track.cc
@@ -92,10 +92,6 @@ Track::init ()
DiskIOProcessor::Flag dflags = DiskIOProcessor::Recordable;
- if (_mode == Destructive) {
- dflags = DiskIOProcessor::Flag (dflags | DiskIOProcessor::Destructive);
- }
-
_disk_reader.reset (new DiskReader (_session, name(), dflags));
_disk_reader->set_block_size (_session.get_block_size ());
_disk_reader->set_track (boost::dynamic_pointer_cast<Track> (shared_from_this()));
@@ -468,12 +464,6 @@ Track::ensure_input_monitoring (bool m)
}
}
-bool
-Track::destructive () const
-{
- return _disk_writer->destructive ();
-}
-
list<boost::shared_ptr<Source> > &
Track::last_capture_sources ()
{
@@ -1040,20 +1030,6 @@ Track::use_captured_audio_sources (SourceList& srcs, CaptureInfos const & captur
return;
}
- /* destructive tracks have a single, never changing region */
-
- if (destructive()) {
-
- /* send a signal that any UI can pick up to do the right thing. there is
- a small problem here in that a UI may need the peak data to be ready
- for the data that was recorded and this isn't interlocked with that
- process. this problem is deferred to the UI.
- */
-
- pl->LayeringChanged(); // XXX this may not get the UI to do the right thing
- return;
- }
-
string whole_file_region_name;
whole_file_region_name = region_name_from_path (afs->name(), true);