From 9ed3454e3d06f99510cd203419c40c46a0370c08 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 30 Aug 2012 20:21:06 +0000 Subject: [PATCH] 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 --- samples/notebook/notebook.cpp | 9 --------- samples/notebook/notebook.h | 1 - 2 files changed, 10 deletions(-) diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index 7081f5b565..1ddbfbbe17 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -503,15 +503,6 @@ MyFrame::~MyFrame() 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() { int flags; diff --git a/samples/notebook/notebook.h b/samples/notebook/notebook.h index d0b48b4afb..914535986e 100644 --- a/samples/notebook/notebook.h +++ b/samples/notebook/notebook.h @@ -97,7 +97,6 @@ private: void RecreateBook(); 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; // Sample setup -- 2.45.2