summaryrefslogtreecommitdiff
path: root/libs/ardour/sndfilesource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r--libs/ardour/sndfilesource.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc
index 7006c6c7eb..e5ba83015d 100644
--- a/libs/ardour/sndfilesource.cc
+++ b/libs/ardour/sndfilesource.cc
@@ -405,8 +405,6 @@ SndFileSource::nondestructive_write_unlocked (Sample *data, framecnt_t cnt)
framecnt_t
SndFileSource::destructive_write_unlocked (Sample* data, framecnt_t cnt)
{
- framepos_t old_file_pos;
-
if (!writable()) {
warning << string_compose (_("attempt to write a non-writable audio file source (%1)"), _path) << endmsg;
return 0;
@@ -482,7 +480,6 @@ SndFileSource::destructive_write_unlocked (Sample* data, framecnt_t cnt)
}
}
- old_file_pos = file_pos;
update_length (file_pos, cnt);
if (_build_peakfiles) {