]> git.saurik.com Git - wxWidgets.git/commitdiff
warning fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Feb 2002 16:41:26 +0000 (16:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Feb 2002 16:41:26 +0000 (16:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/colour.cpp

index 347c6df14035038686b9d8913ce30f33ae420411..cf8302dd51c967fe68647ed9ef6c53b0c33f8bbb 100644 (file)
@@ -82,11 +82,11 @@ unsigned short wxColourRefData::colMapAllocCounter[ 256 ] =
 
 void wxColourRefData::FreeColour()
 {
+#if 0        
     if (m_colormap)
     {
         Colormap cm = (Colormap)m_colormap;
 
-#if 0        
         GdkColormapPrivate *private_colormap = (GdkColormapPrivate*) m_colormap;
         if ((private_colormap->visual->type == GDK_VISUAL_GRAYSCALE) ||
             (private_colormap->visual->type == GDK_VISUAL_PSEUDO_COLOR))
@@ -97,8 +97,8 @@ void wxColourRefData::FreeColour()
             if (colMapAllocCounter[ idx ] == 0)
             gdk_colormap_free_colors( m_colormap, &m_color, 1 );
         }
-#endif
     }
+#endif
 }
 
 void wxColourRefData::AllocColour( WXColormap cmap )