1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 14:35:32 +01: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

@@ -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);