1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 08:09:41 +02:00

Delete a quantity of unused variables, based on a patch supplied by Campbell Barton

This commit is contained in:
RichardAsh1981@gmail.com 2013-09-12 16:48:55 +00:00
parent c5f386da80
commit 2952017541
7 changed files with 4 additions and 24 deletions

View File

@ -75,7 +75,6 @@ bool CrossFader::CrossFadeMix(samplePtr buffer, sampleFormat format, sampleCount
//Get a pointer to the sequence in each clip.
WaveClip * tmpclip = NULL;
Sequence * tmp = NULL;
WaveClipList::compatibility_iterator it;
@ -220,13 +219,6 @@ bool CrossFader::CrossFadeMix(samplePtr buffer, sampleFormat format, sampleCount
float *dest = (float *)buffer;
vector<float*> floatSeq;
//Copy the sequences over to the new vector, casting as you go.
for(int i = 0; i < numclips; i++)
{
float * tmp;
//tmpSequence[i]->GetSamples(tmp,format,0,tmpSequence[i]->GetNumSamples());
//floatSeq.push_back(tmp);
}
int clips = 0;
float f;

View File

@ -239,7 +239,7 @@ void ModuleManager::Initialize(CommandHandler &cmdHandler)
#ifdef EXPERIMENTAL_MODULE_PREFS
if( !IsAllowedModule( files[i] ) ) // don't try and check the in-date-ness before this as that means loading the module to call it's GetVersionString, which could do anything.
#endif EXPERIMENTAL_MODULE_PREFS
#endif
{
wxString ShortName = wxFileName( files[i] ).GetName();
wxString msg;

View File

@ -1478,9 +1478,7 @@ void AudacityProject::UpdateFirstVisible()
mViewInfo.track = NULL;
if (t->GetY() > mViewInfo.vpos) {
Track *l = NULL;
while (t && t->GetY() > mViewInfo.vpos) {
l = t;
t = mTracks->GetPrev(t);
}
}

View File

@ -352,8 +352,6 @@ int Importer::Import(wxString fName,
// First, add user-selected filter
bool usersSelectionOverrides;
// False if override filter is not found
bool foundOverride = false;
gPrefs->Read(wxT("/ExtendedImport/OverrideExtendedImportByOpenFileDialogChoice"), &usersSelectionOverrides, false);
wxLogDebug(wxT("LastOpenType is %s"),type.c_str());
@ -370,7 +368,6 @@ int Importer::Import(wxString fName,
// This plugin corresponds to user-selected filter, try it first.
wxLogDebug(wxT("Inserting %s"),plugin->GetPluginStringID().c_str());
importPlugins.Insert(plugin);
foundOverride = true;
}
importPluginNode = importPluginNode->GetNext();
}
@ -379,7 +376,6 @@ int Importer::Import(wxString fName,
wxLogMessage(wxT("File name is %s"),(const char *) fName.mb_str());
wxLogMessage(wxT("Mime type is %s"),(const char *) mime_type.Lower().mb_str());
bool foundItem = false;
for (size_t i = 0; i < mExtImportItems->Count(); i++)
{
ExtImportItem *item = &(*mExtImportItems)[i];
@ -431,7 +427,6 @@ int Importer::Import(wxString fName,
wxLogDebug(wxT("Inserting %s"),item->filter_objects[j]->GetPluginStringID().c_str());
importPlugins.Append(item->filter_objects[j]);
}
foundItem = true;
}
}

View File

@ -77,13 +77,12 @@ static float JumpStat(float *data, int len)
static float SecondDStat(float *data, int len)
{
int i;
float v1=0, v2=0, v3=0;
float v1=0, v2=0;
float a1=0, a2=0;
float sum=0;
for (i = 1; i < len; i++) {
a2 = a1;
v3 = v2;
v2 = v1;
v1 = data[i]-data[i-1];
a1 = v1 - v2;

View File

@ -74,7 +74,6 @@ void AttachableScrollBar::SetViewInfoFromScrollBar()
ViewInfo & mViewInfo = *mpViewInfo;
int hlast = mViewInfo.sbarH;
int hoffset = 0;
mViewInfo.sbarH = GetThumbPosition();
@ -85,7 +84,6 @@ void AttachableScrollBar::SetViewInfoFromScrollBar()
mViewInfo.h = mViewInfo.total - mViewInfo.screen;
if (mViewInfo.h < 0.0)
mViewInfo.h = 0.0;
hoffset = (mViewInfo.sbarH - hlast);
}
}

View File

@ -893,7 +893,6 @@ bool ToolBarArea::ExpandRow(int rowIndex)
for(i=0; i<(int)mChildArray.GetCount(); i++)
if (mRowArray[i] == rowIndex) {
ExpandingToolBar *child = mChildArray[i];
wxPoint childPos = child->GetPosition();
wxSize childMin = child->GetMinSize();
wxSize childMax = child->GetMaxSize();
@ -943,17 +942,16 @@ void ToolBarArea::LayoutOne(int childIndex)
wxSize area = GetClientSize();
ExpandingToolBar *child = mChildArray[childIndex];
wxSize childMin = child->GetMinSize();
wxSize childMax = child->GetMaxSize();
if (childIndex == 0) {
mRowArray[childIndex] = 0;
mChildArray[childIndex]->SetSize(0, 0, childMin.x, childMin.y);
ExpandRow(0);
#if 0
wxPoint p = mChildArray[childIndex]->GetPosition();
wxSize s = mChildArray[childIndex]->GetSize();
#if 0
printf("ToolBar %d moved to row %d at (%d, %d), size (%d x %d)\n",
childIndex, mRowArray[childIndex],
p.x, p.y, s.x, s.y);
@ -1002,10 +1000,10 @@ void ToolBarArea::LayoutOne(int childIndex)
// allowed to redo the layout.
mLastLayoutSize = area;
#if 0
wxPoint p = mChildArray[childIndex]->GetPosition();
wxSize s = mChildArray[childIndex]->GetSize();
#if 0
printf("ToolBar %d moved to row %d at (%d, %d), size (%d x %d)\n",
childIndex, mRowArray[childIndex],
p.x, p.y, s.x, s.y);