From 0bb45d7387c9d58125b169fb4518caf998a6f64f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 3 Aug 2015 17:23:40 +0200 Subject: [PATCH] Remove commented out code in wxWindowMac::MacPostControlCreate(). This code was moved into SetPeer() ~4 years ago in d15694e8, there is really no need to keep a copy of it here as well. No real changes. --- src/osx/window_osx.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index c74bc43a3c..b50b3922de 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -466,30 +466,6 @@ void wxWindowMac::MacPostControlCreate(const wxPoint& pos, { SetPosition(pos); } - - // todo remove if refactoring works correctly -#if 0 - wxASSERT_MSG( GetPeer() != NULL && GetPeer()->IsOk() , wxT("No valid mac control") ) ; - - if (!GetParent()->GetChildren().Find((wxWindow*)this)) - GetParent()->AddChild( this ); - - GetPeer()->InstallEventHandler(); - GetPeer()->Embed(GetParent()->GetPeer()); - - GetParent()->MacChildAdded() ; - - // adjust font, controlsize etc - DoSetWindowVariant( m_windowVariant ) ; - - GetPeer()->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ; - - // for controls we want to use best size for wxDefaultSize params ) - if ( !GetPeer()->IsUserPane() ) - SetInitialSize(size); - - SetCursor( *wxSTANDARD_CURSOR ) ; -#endif } void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )