From c2a7e6c94691f1dc981e10f4b26721e6d6efeb31 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 1 Aug 2020 11:41:54 +0200 Subject: [PATCH] Fix unused-variable warning in wxListCtrl code --- src/msw/listctrl.cpp | 1 - 1 file changed, 1 deletion(-) 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);