]> git.saurik.com Git - wxWidgets.git/commitdiff
removing duplicate code
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 13 Jan 2009 04:38:16 +0000 (04:38 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 13 Jan 2009 04:38:16 +0000 (04:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/window_osx.cpp

index dab34b2ad87f963ba09f1c91506c8ef6486a9fcf..9c41ef118923dc1cbddfd1e41360976a32d1b394 100644 (file)
@@ -342,7 +342,6 @@ void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
     wxFont font ;
 
 #if wxOSX_USE_ATSU_TEXT
-    ControlSize size ;
     ThemeFontID themeFont = kThemeSystemFont ;
 
     // we will get that from the settings later
@@ -352,23 +351,19 @@ void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
     switch ( variant )
     {
         case wxWINDOW_VARIANT_NORMAL :
-            size = kControlSizeNormal;
             themeFont = kThemeSystemFont ;
             break ;
 
         case wxWINDOW_VARIANT_SMALL :
-            size = kControlSizeSmall;
             themeFont = kThemeSmallSystemFont ;
             break ;
 
         case wxWINDOW_VARIANT_MINI :
             // not always defined in the headers
-            size = 3 ;
             themeFont = 109 ;
             break ;
 
         case wxWINDOW_VARIANT_LARGE :
-            size = kControlSizeLarge;
             themeFont = kThemeSystemFont ;
             break ;