diff options
author | Carl Hetherington <carl@carlh.net> | 2011-07-02 17:16:46 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-07-02 17:16:46 +0000 |
commit | cd17e05e3a22614387050736c89a4727c4da0d61 (patch) | |
tree | f224ba7c78d83a9abc5d1c8ecf7bedb31005ed74 /gtk2_ardour/crossfade_edit.cc | |
parent | c03ea1fdb307fadff2b3c3f837426f1039bf5b10 (diff) |
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
Diffstat (limited to 'gtk2_ardour/crossfade_edit.cc')
-rw-r--r-- | gtk2_ardour/crossfade_edit.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk2_ardour/crossfade_edit.cc b/gtk2_ardour/crossfade_edit.cc index c3f561944f..7ec19e97ad 100644 --- a/gtk2_ardour/crossfade_edit.cc +++ b/gtk2_ardour/crossfade_edit.cc @@ -809,8 +809,6 @@ CrossfadeEditor::_apply_to (boost::shared_ptr<Crossfade> xf) double firstx = (*in.begin())->when; double endx = (*the_end)->when; - double miny = in.get_min_y (); - double maxy = in.get_max_y (); in.freeze (); in.clear (); @@ -818,7 +816,7 @@ CrossfadeEditor::_apply_to (boost::shared_ptr<Crossfade> xf) for (list<Point*>::iterator i = fade[In].points.begin(); i != fade[In].points.end(); ++i) { double when = firstx + ((*i)->x * (endx - firstx)); - double value = (*i)->y; // miny + ((*i)->y * (maxy - miny)); + double value = (*i)->y; in.add (when, value); } @@ -829,8 +827,6 @@ CrossfadeEditor::_apply_to (boost::shared_ptr<Crossfade> xf) firstx = (*out.begin())->when; endx = (*the_end)->when; - miny = out.get_min_y (); - maxy = out.get_max_y (); out.freeze (); out.clear (); @@ -838,7 +834,7 @@ CrossfadeEditor::_apply_to (boost::shared_ptr<Crossfade> xf) for (list<Point*>::iterator i = fade[Out].points.begin(); i != fade[Out].points.end(); ++i) { double when = firstx + ((*i)->x * (endx - firstx)); - double value = (*i)->y; // miny + ((*i)->y * (maxy - miny)); + double value = (*i)->y; out.add (when, value); } |