Remove unnecessary TranslateBookFlag() from the notebook sample.
It probably was needed before, when the flags had different values for different controls, but is simply unused now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -503,15 +503,6 @@ MyFrame::~MyFrame()
|
|||||||
wxFAIL_MSG( wxT("unknown book control type") ); \
|
wxFAIL_MSG( wxT("unknown book control type") ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
int MyFrame::TranslateBookFlag(int nb, int lb, int chb, int tbk, int toolbk, int aui) const
|
|
||||||
{
|
|
||||||
int flag = 0;
|
|
||||||
|
|
||||||
DISPATCH_ON_TYPE(flag =, nb, lb, chb, tbk, toolbk, aui, + 0);
|
|
||||||
|
|
||||||
return flag;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MyFrame::RecreateBook()
|
void MyFrame::RecreateBook()
|
||||||
{
|
{
|
||||||
int flags;
|
int flags;
|
||||||
|
@@ -97,7 +97,6 @@ private:
|
|||||||
|
|
||||||
void RecreateBook();
|
void RecreateBook();
|
||||||
wxPanel *CreateNewPage() const;
|
wxPanel *CreateNewPage() const;
|
||||||
int TranslateBookFlag(int nb, int lb, int chb, int tbk, int toolbkm, int aui) const;
|
|
||||||
void AddFlagStrIfFlagPresent(wxString & flagStr, long flags, long flag, const wxChar * flagName) const;
|
void AddFlagStrIfFlagPresent(wxString & flagStr, long flags, long flag, const wxChar * flagName) const;
|
||||||
|
|
||||||
// Sample setup
|
// Sample setup
|
||||||
|
Reference in New Issue
Block a user