Remove unused variables
This commit is contained in:
@@ -929,10 +929,6 @@ MyFrame::MyFrame(const wxString& title, wxWindowID id, const wxPoint& pos,
|
|||||||
wxSplitterWindow* splitter = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE);
|
wxSplitterWindow* splitter = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE);
|
||||||
sizer->Add(splitter, 1, wxEXPAND);
|
sizer->Add(splitter, 1, wxEXPAND);
|
||||||
|
|
||||||
wxFont textFont = wxFont(wxFontInfo(12).Family(wxFONTFAMILY_ROMAN));
|
|
||||||
wxFont boldFont = wxFont(wxFontInfo(12).Family(wxFONTFAMILY_ROMAN));
|
|
||||||
wxFont italicFont = wxFont(wxFontInfo(12).Family(wxFONTFAMILY_ROMAN).Italic());
|
|
||||||
|
|
||||||
m_richTextCtrl = new MyRichTextCtrl(splitter, ID_RICHTEXT_CTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxVSCROLL|wxHSCROLL/*|wxWANTS_CHARS*/);
|
m_richTextCtrl = new MyRichTextCtrl(splitter, ID_RICHTEXT_CTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxVSCROLL|wxHSCROLL/*|wxWANTS_CHARS*/);
|
||||||
wxASSERT(!m_richTextCtrl->GetBuffer().GetAttributes().HasFontPixelSize());
|
wxASSERT(!m_richTextCtrl->GetBuffer().GetAttributes().HasFontPixelSize());
|
||||||
|
|
||||||
|
@@ -1012,7 +1012,6 @@ void MyApp::DoVariantDemo(wxCommandEvent& WXUNUSED(event) )
|
|||||||
textCtrl << "var1 = " << var1.MakeString() << "\n";
|
textCtrl << "var1 = " << var1.MakeString() << "\n";
|
||||||
|
|
||||||
// Conversion
|
// Conversion
|
||||||
wxString str = var1.MakeString();
|
|
||||||
|
|
||||||
var1 = 123.456;
|
var1 = 123.456;
|
||||||
textCtrl << "var1 = " << var1.GetReal() << "\n";
|
textCtrl << "var1 = " << var1.GetReal() << "\n";
|
||||||
|
@@ -71,8 +71,6 @@ class wxDataViewCtrl;
|
|||||||
// constants
|
// constants
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
static const int SCROLL_UNIT_X = 15;
|
|
||||||
|
|
||||||
// the cell padding on the left/right
|
// the cell padding on the left/right
|
||||||
static const int PADDING_RIGHTLEFT = 3;
|
static const int PADDING_RIGHTLEFT = 3;
|
||||||
|
|
||||||
|
@@ -1624,12 +1624,6 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl),
|
|||||||
|
|
||||||
void wxToolBar::SetToolBitmapSize(const wxSize& size)
|
void wxToolBar::SetToolBitmapSize(const wxSize& size)
|
||||||
{
|
{
|
||||||
// Leave the effective size as (0, 0) if we are not showing bitmaps at all.
|
|
||||||
wxSize effectiveSize;
|
|
||||||
|
|
||||||
if ( !HasFlag(wxTB_NOICONS) )
|
|
||||||
effectiveSize = size;
|
|
||||||
|
|
||||||
wxToolBarBase::SetToolBitmapSize(size);
|
wxToolBarBase::SetToolBitmapSize(size);
|
||||||
|
|
||||||
::SendMessage(GetHwnd(), TB_SETBITMAPSIZE, 0, MAKELONG(size.x, size.y));
|
::SendMessage(GetHwnd(), TB_SETBITMAPSIZE, 0, MAKELONG(size.x, size.y));
|
||||||
|
@@ -667,13 +667,10 @@ wxDataViewWidgetImpl* wxDataViewCtrl::GetDataViewPeer() const
|
|||||||
|
|
||||||
void wxDataViewCtrl::AddChildren(wxDataViewItem const& parentItem)
|
void wxDataViewCtrl::AddChildren(wxDataViewItem const& parentItem)
|
||||||
{
|
{
|
||||||
int noOfChildren;
|
|
||||||
|
|
||||||
wxDataViewItemArray items;
|
wxDataViewItemArray items;
|
||||||
|
|
||||||
|
|
||||||
wxCHECK_RET(GetModel() != NULL,"Model pointer not initialized.");
|
wxCHECK_RET(GetModel() != NULL,"Model pointer not initialized.");
|
||||||
noOfChildren = GetModel()->GetChildren(parentItem,items);
|
GetModel()->GetChildren(parentItem,items);
|
||||||
(void) GetModel()->ItemsAdded(parentItem,items);
|
(void) GetModel()->ItemsAdded(parentItem,items);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -248,7 +248,6 @@ wxSize wxListBox::DoGetBestSize() const
|
|||||||
{
|
{
|
||||||
int lbWidth = 100; // some defaults
|
int lbWidth = 100; // some defaults
|
||||||
int lbHeight;
|
int lbHeight;
|
||||||
int wLine;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
wxClientDC dc(const_cast<wxListBox*>(this));
|
wxClientDC dc(const_cast<wxListBox*>(this));
|
||||||
@@ -261,8 +260,7 @@ wxSize wxListBox::DoGetBestSize() const
|
|||||||
|
|
||||||
wxCoord width, height ;
|
wxCoord width, height ;
|
||||||
dc.GetTextExtent( str , &width, &height);
|
dc.GetTextExtent( str , &width, &height);
|
||||||
wLine = width ;
|
lbWidth = wxMax( lbWidth, width );
|
||||||
lbWidth = wxMax( lbWidth, wLine );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add room for the scrollbar
|
// Add room for the scrollbar
|
||||||
|
@@ -2062,13 +2062,7 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
const wxPGProperty* firstItem;
|
const wxPGProperty* firstItem;
|
||||||
const wxPGProperty* lastItem;
|
|
||||||
|
|
||||||
firstItem = DoGetItemAtY(itemsRect->y);
|
firstItem = DoGetItemAtY(itemsRect->y);
|
||||||
lastItem = DoGetItemAtY(itemsRect->y+itemsRect->height-1);
|
|
||||||
|
|
||||||
if ( !lastItem )
|
|
||||||
lastItem = GetLastItem( wxPG_ITERATE_VISIBLE );
|
|
||||||
|
|
||||||
int vx, vy;
|
int vx, vy;
|
||||||
GetViewStart(&vx, &vy);
|
GetViewStart(&vx, &vy);
|
||||||
@@ -4524,7 +4518,6 @@ bool wxPropertyGrid::DoHideProperty( wxPGProperty* p, bool hide, int flags )
|
|||||||
return m_pState->DoHideProperty(p, hide, flags);
|
return m_pState->DoHideProperty(p, hide, flags);
|
||||||
|
|
||||||
wxArrayPGProperty selection = m_pState->m_selection; // Must use a copy
|
wxArrayPGProperty selection = m_pState->m_selection; // Must use a copy
|
||||||
int selRemoveCount = 0;
|
|
||||||
for ( unsigned int i=0; i<selection.size(); i++ )
|
for ( unsigned int i=0; i<selection.size(); i++ )
|
||||||
{
|
{
|
||||||
wxPGProperty* selected = selection[i];
|
wxPGProperty* selected = selection[i];
|
||||||
@@ -4532,7 +4525,6 @@ bool wxPropertyGrid::DoHideProperty( wxPGProperty* p, bool hide, int flags )
|
|||||||
{
|
{
|
||||||
if ( !DoRemoveFromSelection(p, flags) )
|
if ( !DoRemoveFromSelection(p, flags) )
|
||||||
return false;
|
return false;
|
||||||
selRemoveCount += 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -869,8 +869,6 @@ void wxRibbonToolBar::OnSize(wxSizeEvent& evt)
|
|||||||
if (sizingFlexibly)
|
if (sizingFlexibly)
|
||||||
major_axis = wxHORIZONTAL;
|
major_axis = wxHORIZONTAL;
|
||||||
|
|
||||||
wxSize bestSize = m_sizes[0];
|
|
||||||
|
|
||||||
if(m_nrows_max != m_nrows_min)
|
if(m_nrows_max != m_nrows_min)
|
||||||
{
|
{
|
||||||
int area = 0;
|
int area = 0;
|
||||||
@@ -881,7 +879,6 @@ void wxRibbonToolBar::OnSize(wxSizeEvent& evt)
|
|||||||
{
|
{
|
||||||
area = GetSizeInOrientation(m_sizes[i], major_axis);
|
area = GetSizeInOrientation(m_sizes[i], major_axis);
|
||||||
row_count = m_nrows_min + i;
|
row_count = m_nrows_min + i;
|
||||||
bestSize = m_sizes[i];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -11523,7 +11523,6 @@ bool wxRichTextTableBlock::ComputeBlockForSelection(wxRichTextTable* table, wxRi
|
|||||||
{
|
{
|
||||||
// Start with an invalid block and increase.
|
// Start with an invalid block and increase.
|
||||||
wxRichTextTableBlock selBlock(-1, -1, -1, -1);
|
wxRichTextTableBlock selBlock(-1, -1, -1, -1);
|
||||||
wxRichTextRangeArray ranges = selection.GetRanges();
|
|
||||||
int row, col;
|
int row, col;
|
||||||
for (row = 0; row < table->GetRowCount(); row++)
|
for (row = 0; row < table->GetRowCount(); row++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user