]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed dead code.
authorMattia Barbon <mbarbon@cpan.org>
Mon, 12 May 2003 19:58:45 +0000 (19:58 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Mon, 12 May 2003 19:58:45 +0000 (19:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/bmpbuttn.cpp

index 721409d8a4c0f3c54018385818f92b567f93dbeb..4d3c21fa93b410afa96aad8830d0fadf8845fe83 100644 (file)
@@ -58,13 +58,6 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id,
     m_bmpNormal = m_bmpNormalOriginal = bitmap;
     m_bmpSelected = m_bmpSelectedOriginal = bitmap;
 
-    /*
-    int x = pos.x;
-    int y = pos.y;
-    int width = size.x;
-    int height = size.y;
-    */
-
     Widget parentWidget = (Widget) parent->GetClientWidget();
 
     /*
@@ -232,16 +225,6 @@ void wxBitmapButton::DoSetBitmap()
         else
             armPixmap = (Pixmap) m_bitmapCache.GetArmPixmap(m_mainWidget);
 
-#if 0
-        // <- the Get...Pixmap()-functions return the same pixmap!
-        if (insensPixmap == pixmap) 
-        {
-            insensPixmap =
-                XCreateInsensitivePixmap(DisplayOfScreen(XtScreen((Widget) m_mainWidget)), pixmap);
-            m_insensPixmap = (WXPixmap) insensPixmap;
-        }
-#endif
-
         XtVaSetValues ((Widget) m_mainWidget,
             XmNlabelPixmap, pixmap,
             XmNlabelInsensitivePixmap, insensPixmap,