unused variable
authorPaul Cornett <paulcor@bullseye.com>
Sat, 9 Dec 2006 19:49:02 +0000 (19:49 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 9 Dec 2006 19:49:02 +0000 (19:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dragimag.cpp

index 469d3954b028dd0fa960d960e8a5d63bd6801f41..2cb08d63d31c44396e6837fd2026c7cfe4b969da 100644 (file)
@@ -182,9 +182,8 @@ bool wxDragImage::Create(const wxIcon& image, const wxCursor& cursor)
     else
         flags = ILC_COLOR32;
 #endif
-    bool mask = true;
-    if ( mask )
-        flags |= ILC_MASK;
+
+    flags |= ILC_MASK;
 
     m_hImageList = (WXHIMAGELIST) ImageList_Create(image.GetWidth(), image.GetHeight(), flags, 1, 1);