Fix unused-variable warning in wxListCtrl code

This commit is contained in:
Maarten Bent
2020-08-01 11:41:54 +02:00
parent 5bd35f6c85
commit c2a7e6c946

View File

@@ -3281,7 +3281,6 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
// Find the coordinate of the right most visible point: this is not the // Find the coordinate of the right most visible point: this is not the
// same as GetClientSize().x because the window might not be fully visible, // same as GetClientSize().x because the window might not be fully visible,
// it could be clipped by its parent. // it could be clipped by its parent.
const wxSize size = GetSize();
const int availableWidth = GetParent()->GetClientSize().x - GetPosition().x; const int availableWidth = GetParent()->GetClientSize().x - GetPosition().x;
int visibleWidth = wxMin(GetClientSize().x, int visibleWidth = wxMin(GetClientSize().x,
availableWidth - GetWindowBorderSize().x); availableWidth - GetWindowBorderSize().x);