From 87fcb4945a5a088143bed35c586d643ccc706eef Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 29 Aug 2012 07:11:20 +0000 Subject: [PATCH] remove duplicate code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/window_osx.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 990547c781..f09d216e64 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -484,39 +484,6 @@ void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant ) return; GetPeer()->SetControlSize( variant ); -#if wxOSX_USE_CARBON - ControlSize size ; - - // we will get that from the settings later - // and make this NORMAL later, but first - // we have a few calculations that we must fix - - switch ( variant ) - { - case wxWINDOW_VARIANT_NORMAL : - size = kControlSizeNormal; - break ; - - case wxWINDOW_VARIANT_SMALL : - size = kControlSizeSmall; - break ; - - case wxWINDOW_VARIANT_MINI : - // not always defined in the headers - size = 3 ; - break ; - - case wxWINDOW_VARIANT_LARGE : - size = kControlSizeLarge; - break ; - - default: - wxFAIL_MSG(wxT("unexpected window variant")); - break ; - } - GetPeer()->SetData(kControlEntireControl, kControlSizeTag, &size ) ; -#endif - switch ( variant ) { -- 2.45.2