mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-16 16:20:50 +02:00
remove various unused #defines and bits of code, patch by Campbell Barton
This commit is contained in:
parent
14f861f4b1
commit
6a7da21dec
@ -563,8 +563,6 @@ class GnomeShutdown
|
|||||||
GnomeClient *mClient;
|
GnomeClient *mClient;
|
||||||
};
|
};
|
||||||
|
|
||||||
GnomeShutdown GnomeShutdownInstance;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__WXMSW__)
|
#if defined(__WXMSW__)
|
||||||
|
@ -316,8 +316,10 @@ writing audio.
|
|||||||
#include "NoteTrack.h"
|
#include "NoteTrack.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LOWER_BOUND 0.0
|
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
#define UPPER_BOUND 1.0
|
#define LOWER_BOUND 0.0
|
||||||
|
#define UPPER_BOUND 1.0
|
||||||
|
#endif
|
||||||
|
|
||||||
using std::max;
|
using std::max;
|
||||||
using std::min;
|
using std::min;
|
||||||
|
@ -5587,12 +5587,6 @@ void AudacityProject::OnEditLabels()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// #define PRESET_FORMAT 20050501
|
|
||||||
#define PRESET_FORMAT 20050428
|
|
||||||
// #define PRESET_COUNT 16
|
|
||||||
#define PRESET_COUNT 14
|
|
||||||
|
|
||||||
|
|
||||||
void AudacityProject::OnApplyChain()
|
void AudacityProject::OnApplyChain()
|
||||||
{
|
{
|
||||||
BatchProcessDialog dlg(this);
|
BatchProcessDialog dlg(this);
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#include "Internat.h"
|
#include "Internat.h"
|
||||||
#include "Prefs.h"
|
#include "Prefs.h"
|
||||||
|
|
||||||
#define MAX_PROG 1000
|
|
||||||
#define TIMER_ID 7000
|
#define TIMER_ID 7000
|
||||||
|
|
||||||
enum { // control IDs
|
enum { // control IDs
|
||||||
|
@ -2366,7 +2366,6 @@ const char *LookupAtomAttribute(Alg_note_ptr note, Alg_attribute attr, char *def
|
|||||||
}
|
}
|
||||||
return def;
|
return def;
|
||||||
}
|
}
|
||||||
#endif // USE_MIDI
|
|
||||||
|
|
||||||
#define TIME_TO_X(t) (r.x + (int) (((t) - h) * pps))
|
#define TIME_TO_X(t) (r.x + (int) (((t) - h) * pps))
|
||||||
#define X_TO_TIME(xx) (((xx) - r.x) / pps + h)
|
#define X_TO_TIME(xx) (((xx) - r.x) / pps + h)
|
||||||
@ -2388,8 +2387,6 @@ const char *LookupAtomAttribute(Alg_note_ptr note, Alg_attribute attr, char *def
|
|||||||
|
|
||||||
//#define PITCH_TO_Y(p) (r.y + r.height - int(pitchht * ((p) + 0.5 - pitch0) + 0.5))
|
//#define PITCH_TO_Y(p) (r.y + r.height - int(pitchht * ((p) + 0.5 - pitch0) + 0.5))
|
||||||
|
|
||||||
#ifdef USE_MIDI
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
int PitchToY(double p, int bottom)
|
int PitchToY(double p, int bottom)
|
||||||
{
|
{
|
||||||
|
@ -54,16 +54,6 @@
|
|||||||
//#include "../images/AudacityLogo.xpm"
|
//#include "../images/AudacityLogo.xpm"
|
||||||
//#include "../images/UploadImages.h"
|
//#include "../images/UploadImages.h"
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
# define DLOG_HEIGHT 430
|
|
||||||
#else
|
|
||||||
# if defined(__WXMAC__) && ((wxMAJOR_VERSION == 2) && (wxMINOR_VERSION >= 5))
|
|
||||||
# define DLOG_HEIGHT 430
|
|
||||||
# else
|
|
||||||
# define DLOG_HEIGHT 400
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Icon images
|
// Icon images
|
||||||
|
|
||||||
///\todo get these XPMs out of here and into Theme.
|
///\todo get these XPMs out of here and into Theme.
|
||||||
|
@ -939,16 +939,6 @@ void EffectAutoDuckPanel::OnMotion(wxMouseEvent &evt)
|
|||||||
|
|
||||||
if (mControlPointMoveActivated)
|
if (mControlPointMoveActivated)
|
||||||
{
|
{
|
||||||
int dist;
|
|
||||||
|
|
||||||
if (mCurrentControlPoint == duckAmount)
|
|
||||||
dist = abs(evt.GetY() -
|
|
||||||
mMoveStartControlPoints[mCurrentControlPoint].y);
|
|
||||||
else
|
|
||||||
dist = abs(evt.GetX() -
|
|
||||||
mMoveStartControlPoints[mCurrentControlPoint].x);
|
|
||||||
// TODO: Get rid of unused 'dist' var within this scope?
|
|
||||||
|
|
||||||
float newValue;
|
float newValue;
|
||||||
|
|
||||||
switch (mCurrentControlPoint)
|
switch (mCurrentControlPoint)
|
||||||
|
@ -171,11 +171,6 @@ void EffectNoise::Success()
|
|||||||
// NoiseDialog
|
// NoiseDialog
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
#define FREQ_MIN 1
|
|
||||||
#define FREQ_MAX 20000
|
|
||||||
#define AMP_MIN 0
|
|
||||||
#define AMP_MAX 1
|
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(NoiseDialog, EffectDialog)
|
BEGIN_EVENT_TABLE(NoiseDialog, EffectDialog)
|
||||||
EVT_COMMAND(wxID_ANY, EVT_TIMETEXTCTRL_UPDATED, NoiseDialog::OnTimeCtrlUpdate)
|
EVT_COMMAND(wxID_ANY, EVT_TIMETEXTCTRL_UPDATED, NoiseDialog::OnTimeCtrlUpdate)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
@ -509,7 +509,6 @@ void EffectTruncSilence::BlendFrames(float* buffer, int blendFrameCount, int lef
|
|||||||
#define ID_SHORTEST_SILENCE_TEXT 7000
|
#define ID_SHORTEST_SILENCE_TEXT 7000
|
||||||
#define ID_LONGEST_SILENCE_TEXT 7001
|
#define ID_LONGEST_SILENCE_TEXT 7001
|
||||||
#define ID_COMPRESS_FACTOR 7002
|
#define ID_COMPRESS_FACTOR 7002
|
||||||
#define ID_DB_SILENCE_THRESHOLD_CHOICE 7003
|
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(TruncSilenceDialog, EffectDialog)
|
BEGIN_EVENT_TABLE(TruncSilenceDialog, EffectDialog)
|
||||||
EVT_BUTTON(ID_EFFECT_PREVIEW, TruncSilenceDialog::OnPreview)
|
EVT_BUTTON(ID_EFFECT_PREVIEW, TruncSilenceDialog::OnPreview)
|
||||||
|
@ -75,7 +75,6 @@ static void WriteExportFormatPref(int format)
|
|||||||
// ExportPCMOptions Class
|
// ExportPCMOptions Class
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
#define ID_FORMAT_CHOICE 7101
|
|
||||||
#define ID_HEADER_CHOICE 7102
|
#define ID_HEADER_CHOICE 7102
|
||||||
#define ID_ENCODING_CHOICE 7103
|
#define ID_ENCODING_CHOICE 7103
|
||||||
|
|
||||||
|
@ -30,17 +30,6 @@
|
|||||||
#include "../Menus.h"
|
#include "../Menus.h"
|
||||||
#include "../toolbars/ToolManager.h"
|
#include "../toolbars/ToolManager.h"
|
||||||
|
|
||||||
#define ChainsListID 7005
|
|
||||||
#define AddButtonID 7006
|
|
||||||
#define RemoveButtonID 7007
|
|
||||||
#define CommandsListID 7008
|
|
||||||
#define ImportButtonID 7009
|
|
||||||
#define ExportButtonID 7010
|
|
||||||
#define DefaultsButtonID 7011
|
|
||||||
#define UpButtonID 7012
|
|
||||||
#define DownButtonID 7013
|
|
||||||
#define RenameButtonID 7014
|
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(BatchPrefs, wxPanel)
|
BEGIN_EVENT_TABLE(BatchPrefs, wxPanel)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user