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

Removed some unused members, made some members const

This commit is contained in:
Paul Licameli 2016-06-08 12:21:40 -04:00
parent 82cf9b3ab6
commit 64ad732aee
5 changed files with 6 additions and 26 deletions

View File

@ -359,7 +359,7 @@ void ToolBar::SetLabel(const wxString & label)
// //
// Returns whether the toolbar is resizable or not // Returns whether the toolbar is resizable or not
// //
bool ToolBar::IsResizable() bool ToolBar::IsResizable() const
{ {
return mResizable; return mResizable;
} }
@ -367,7 +367,7 @@ bool ToolBar::IsResizable()
// //
// Returns the dock state of the toolbar // Returns the dock state of the toolbar
// //
bool ToolBar::IsDocked() bool ToolBar::IsDocked() const
{ {
return mDock != NULL; return mDock != NULL;
} }
@ -375,7 +375,7 @@ bool ToolBar::IsDocked()
// //
// Returns the visibility of the toolbar // Returns the visibility of the toolbar
// //
bool ToolBar::IsVisible() bool ToolBar::IsVisible() const
{ {
return mVisible; return mVisible;
} }

View File

@ -113,9 +113,9 @@ class ToolBar /* not final */ : public wxPanel
// NEW virtual: // NEW virtual:
virtual bool Expose(bool show = true); virtual bool Expose(bool show = true);
bool IsResizable(); bool IsResizable() const;
bool IsVisible(); bool IsVisible() const;
bool IsDocked(); bool IsDocked() const;
bool IsPositioned(){ return mPositioned; }; bool IsPositioned(){ return mPositioned; };
void SetVisible( bool bVisible ); void SetVisible( bool bVisible );
void SetPositioned(){ mPositioned = true;}; void SetPositioned(){ mPositioned = true;};

View File

@ -121,11 +121,6 @@ void ToolDock::Undock( ToolBar *bar )
} }
} }
int ToolDock::GetBarCount()
{
return mDockedBars.GetCount();
}
// //
// Handle ToolDock events // Handle ToolDock events
// //

View File

@ -59,7 +59,6 @@ class ToolDock final : public wxPanel
void Expose( int type, bool show ); void Expose( int type, bool show );
int Find(ToolBar *bar) const; int Find(ToolBar *bar) const;
int GetOrder( ToolBar *bar ); int GetOrder( ToolBar *bar );
int GetBarCount();
void Dock( ToolBar *bar, bool deflate, int ndx = -1 ); void Dock( ToolBar *bar, bool deflate, int ndx = -1 );
void Undock( ToolBar *bar ); void Undock( ToolBar *bar );
int PositionBar( ToolBar *t, wxPoint & pos, wxRect & rect ); int PositionBar( ToolBar *t, wxPoint & pos, wxRect & rect );
@ -74,18 +73,6 @@ class ToolDock final : public wxPanel
private: private:
void ReadConfig();
void WriteConfig();
int FlowLayout( int cnt,
wxRect boxen[],
wxRect ideal[],
int i,
int x,
int y,
int width,
int height );
void Updated(); void Updated();
int mTotalToolBarHeight; int mTotalToolBarHeight;

View File

@ -20,7 +20,6 @@
#include "ToolDock.h" #include "ToolDock.h"
#include "ToolBar.h" #include "ToolBar.h"
class wxArrayPtrVoid;
class wxBitmap; class wxBitmap;
class wxCommandEvent; class wxCommandEvent;
class wxFrame; class wxFrame;
@ -108,7 +107,6 @@ class ToolManager final : public wxEvtHandler
bool mTransition; bool mTransition;
#endif #endif
wxArrayPtrVoid mDockedBars;
ToolDock *mTopDock; ToolDock *mTopDock;
ToolDock *mBotDock; ToolDock *mBotDock;