fix more Borland release build warnings about unused variable/code without effect

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-10-20 10:30:49 +00:00
parent 107b52ed17
commit e822d1bd5f
14 changed files with 55 additions and 60 deletions

View File

@@ -174,8 +174,6 @@ wxSizer *wxDialogBase::CreateTextSizer(const wxString& message)
wxSizer *wxDialogBase::CreateButtonSizer(long flags)
{
wxSizer *sizer = NULL;
#ifdef __SMARTPHONE__
wxDialog* dialog = (wxDialog*) this;
if ( flags & wxOK )
@@ -189,6 +187,8 @@ wxSizer *wxDialogBase::CreateButtonSizer(long flags)
if ( flags & wxNO )
dialog->SetRightMenu(wxID_NO);
return NULL;
#else // !__SMARTPHONE__
#if wxUSE_BUTTON
@@ -202,15 +202,19 @@ wxSizer *wxDialogBase::CreateButtonSizer(long flags)
wxSystemOptions::GetOptionInt(wxT("wince.dialog.real-ok-cancel")) )
#endif // __POCKETPC__
{
sizer = CreateStdDialogButtonSizer(flags);
return CreateStdDialogButtonSizer(flags);
}
#ifdef __POCKETPC__
return NULL;
#endif // __POCKETPC__
#else // !wxUSE_BUTTON
wxUnusedVar(flags);
return NULL;
#endif // wxUSE_BUTTON/!wxUSE_BUTTON
#endif // __SMARTPHONE__/!__SMARTPHONE__
return sizer;
}
wxSizer *wxDialogBase::CreateSeparatedButtonSizer(long flags)