summaryrefslogtreecommitdiff
path: root/libs/ardour/sndfilesource.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-18 21:12:45 +0200
committerRobin Gareus <robin@gareus.org>2017-08-18 21:12:45 +0200
commit08c1300718157d08aed265c11c21d22719008aa2 (patch)
tree5c38bccf2067dbc5f51462888de2f25adba1f16d /libs/ardour/sndfilesource.cc
parentaf103cf3c23596d97091d857f98c283c943f3a21 (diff)
Remove old destructive API (non layered is a dynamic mode) 2/2
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r--libs/ardour/sndfilesource.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc
index 89b497a248..7436263cc3 100644
--- a/libs/ardour/sndfilesource.cc
+++ b/libs/ardour/sndfilesource.cc
@@ -837,27 +837,6 @@ SndFileSource::natural_position() const
return _timeline_position;
}
-#ifdef XXX_OLD_DESTRUCTIVE_API_XXX
-bool
-SndFileSource::set_destructive (bool yn)
-{
- if (yn) {
- _flags = Flag (_flags | Writable | Destructive);
- if (!xfade_buf) {
- xfade_buf = new Sample[xfade_frames];
- }
- clear_capture_marks ();
- _timeline_position = header_position_offset;
- } else {
- _flags = Flag (_flags & ~Destructive);
- _timeline_position = 0;
- /* leave xfade buf alone in case we need it again later */
- }
-
- return true;
-}
-#endif
-
void
SndFileSource::clear_capture_marks ()
{