diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index ee2ffba2f3..a29c51d477 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -3281,7 +3281,6 @@ void wxListCtrl::OnPaint(wxPaintEvent& event) // 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, // it could be clipped by its parent. - const wxSize size = GetSize(); const int availableWidth = GetParent()->GetClientSize().x - GetPosition().x; int visibleWidth = wxMin(GetClientSize().x, availableWidth - GetWindowBorderSize().x);