From cfdcc3c29db057c6c134ab9c82931cc6fa9561ab Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 14 Oct 2019 09:32:40 -0700 Subject: [PATCH] Remove unreachable code --- src/msw/headerctrl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/msw/headerctrl.cpp b/src/msw/headerctrl.cpp index 822b986c65..a56296d5c8 100644 --- a/src/msw/headerctrl.cpp +++ b/src/msw/headerctrl.cpp @@ -481,12 +481,10 @@ void wxMSWHeaderCtrl::DoInsertItem(const wxHeaderColumn& col, unsigned int idx) if ( col.GetAlignment() != wxALIGN_NOT ) { hdi.mask |= HDI_FORMAT; + + // wxALIGN_LEFT is the same as wxALIGN_NOT switch ( col.GetAlignment() ) { - case wxALIGN_LEFT: - hdi.fmt |= HDF_LEFT; - break; - case wxALIGN_CENTER: case wxALIGN_CENTER_HORIZONTAL: hdi.fmt |= HDF_CENTER;