From 3d2754d04aca7ee0d2ef4f4918de6b929ba94ce9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 5 Jan 2023 21:29:40 +0100 Subject: [PATCH] Remove code not doing anything from propgrid sample This code, added back in 1c4293cb91 (added wxPropertyGrid from Jaakko Salli (#9934), 2008-09-12), resulted in warnings about an unused variable from clang and was generally confusing, so just remove this code entirely as it's not clear what was actually the intention here. --- samples/propgrid/propgrid.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index 8898f9afa4..237a5798fb 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -699,12 +699,7 @@ void FormMain::OnPropertyGridChange( wxPropertyGridEvent& event ) } else if ( name == "Password" ) { - static int pwdMode = 0; - - //m_pPropGridManager->SetPropertyAttribute(property, wxPG_STRING_PASSWORD, (long)pwdMode); - - pwdMode++; - pwdMode &= 1; + // Do something very secret here... } else if ( name == "Font" )