From 17e6f1952e4073fb864354438fed57d5e10ec617 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 21 Jan 2012 02:42:53 +0000 Subject: [PATCH] Remove unused code. git-svn-id: svn://localhost/ardour2/branches/3.0@11289 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/audioregion.h | 2 +- libs/ardour/ardour/gain.h | 42 ---------------------- libs/ardour/audioregion.cc | 1 - libs/ardour/gain.cc | 61 -------------------------------- libs/ardour/midi_region.cc | 1 - libs/ardour/wscript | 1 - 6 files changed, 1 insertion(+), 107 deletions(-) delete mode 100644 libs/ardour/ardour/gain.h delete mode 100644 libs/ardour/gain.cc diff --git a/libs/ardour/ardour/audioregion.h b/libs/ardour/ardour/audioregion.h index 9a78ab98f8..e385863efa 100644 --- a/libs/ardour/ardour/audioregion.h +++ b/libs/ardour/ardour/audioregion.h @@ -28,7 +28,7 @@ #include "ardour/ardour.h" #include "ardour/automatable.h" -#include "ardour/gain.h" +#include "ardour/automation_list.h" #include "ardour/logcurve.h" #include "ardour/region.h" diff --git a/libs/ardour/ardour/gain.h b/libs/ardour/ardour/gain.h deleted file mode 100644 index a9e090fab2..0000000000 --- a/libs/ardour/ardour/gain.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - Copyright (C) 2000 Paul Davis - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -*/ - -#ifndef __ardour_gain_h__ -#define __ardour_gain_h__ - -#include "ardour.h" -#include "automation_list.h" - -namespace ARDOUR { - -struct Gain : public AutomationList -{ - Gain (); - Gain (const Gain&); - Gain& operator= (const Gain&); - - static void fill_linear_fade_in (Gain& curve, framecnt_t frames); - static void fill_linear_volume_fade_in (Gain& curve, framecnt_t frames); - static void fill_linear_fade_out (Gain& curve, framecnt_t frames); - static void fill_linear_volume_fade_out (Gain& curve, framecnt_t frames); -}; - -} /* namespace ARDOUR */ - -#endif /* __ardour_gain_h__ */ diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index e8681cd32c..7e212630d5 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -39,7 +39,6 @@ #include "ardour/audioregion.h" #include "ardour/debug.h" #include "ardour/session.h" -#include "ardour/gain.h" #include "ardour/dB.h" #include "ardour/playlist.h" #include "ardour/audiofilesource.h" diff --git a/libs/ardour/gain.cc b/libs/ardour/gain.cc deleted file mode 100644 index a3c27f4260..0000000000 --- a/libs/ardour/gain.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - Copyright (C) 2000 Paul Davis - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -*/ - -#include "ardour/gain.h" - -using namespace ARDOUR; - -Gain::Gain () - : AutomationList (Evoral::Parameter(GainAutomation)) /* XXX yuck; clamps gain to -inf .. +6db */ -{ -} - -Gain::Gain (const Gain& other) - : AutomationList (other) -{ -} - -Gain& -Gain::operator= (const Gain& other) -{ - if (this != &other) { - AutomationList::operator= (other); - } - return *this; -} - -void -Gain::fill_linear_volume_fade_in (Gain& /*gain*/, framecnt_t /*frames*/) -{ -} - -void -Gain::fill_linear_volume_fade_out (Gain& /*gain*/, framecnt_t /*frames*/) -{ -} - -void -Gain::fill_linear_fade_in (Gain& /*gain*/, framecnt_t /*frames*/) -{ -} - -void -Gain::fill_linear_fade_out (Gain& /*gain*/, framecnt_t /*frames*/) -{ -} diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index fe98261248..092915cefb 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -32,7 +32,6 @@ #include "ardour/automation_control.h" #include "ardour/dB.h" -#include "ardour/gain.h" #include "ardour/midi_model.h" #include "ardour/midi_region.h" #include "ardour/midi_ring_buffer.h" diff --git a/libs/ardour/wscript b/libs/ardour/wscript index 782a5b230c..5910c46e0e 100644 --- a/libs/ardour/wscript +++ b/libs/ardour/wscript @@ -103,7 +103,6 @@ libardour_sources = [ 'filesystem_paths.cc', 'filter.cc', 'find_session.cc', - 'gain.cc', 'globals.cc', 'graph.cc', 'graphnode.cc',