From cd17e05e3a22614387050736c89a4727c4da0d61 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 2 Jul 2011 17:16:46 +0000 Subject: Fix some set-but-not-used variable warnings from gcc 4.6 git-svn-id: svn://localhost/ardour2/branches/3.0@9783 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audio_playlist.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libs/ardour/audio_playlist.cc') diff --git a/libs/ardour/audio_playlist.cc b/libs/ardour/audio_playlist.cc index 0c9fd4f314..70cd9ec3f5 100644 --- a/libs/ardour/audio_playlist.cc +++ b/libs/ardour/audio_playlist.cc @@ -190,9 +190,6 @@ AudioPlaylist::AudioPlaylist (boost::shared_ptr other, fram framecnt_t fade_in = 64; framecnt_t fade_out = 64; - framepos_t position; - framecnt_t len; - frameoffset_t offset; switch (region->coverage (start, end)) { case OverlapNone: @@ -212,9 +209,6 @@ AudioPlaylist::AudioPlaylist (boost::shared_ptr other, fram } case OverlapStart: { - position = region->position() - start; - len = end - region->position(); - if (end > region->position() + region->fade_in()->back()->when) fade_in = region->fade_in()->back()->when; //end is after fade-in, preserve the fade-in if (end > region->last_frame() - region->fade_out()->back()->when) @@ -223,10 +217,6 @@ AudioPlaylist::AudioPlaylist (boost::shared_ptr other, fram } case OverlapEnd: { - position = 0; - offset = start - region->position(); - len = region->length() - offset; - if (start < region->last_frame() - region->fade_out()->back()->when) //start is before fade-out, preserve the fadeout fade_out = region->fade_out()->back()->when; -- cgit v1.2.3