]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/brush.cpp
don't include windows.h unless neccessary
[wxWidgets.git] / src / mac / brush.cpp
index cb9d76d1ab28ca05b8bc687c4d0080cabc5feb5c..f9e14bad6b716bc48335581a6b3c7ed808b108fb 100644 (file)
@@ -40,14 +40,10 @@ wxBrushRefData::~wxBrushRefData()
 // Brushes
 wxBrush::wxBrush()
 {
 // Brushes
 wxBrush::wxBrush()
 {
-    if ( wxTheBrushList )
-        wxTheBrushList->AddBrush(this);
 }
 
 wxBrush::~wxBrush()
 {
 }
 
 wxBrush::~wxBrush()
 {
-    if ( wxTheBrushList )
-        wxTheBrushList->RemoveBrush(this);
 }
 
 wxBrush::wxBrush(const wxColour& col, int Style)
 }
 
 wxBrush::wxBrush(const wxColour& col, int Style)
@@ -58,9 +54,6 @@ wxBrush::wxBrush(const wxColour& col, int Style)
     M_BRUSHDATA->m_style = Style;
 
     RealizeResource();
     M_BRUSHDATA->m_style = Style;
 
     RealizeResource();
-
-    if ( wxTheBrushList )
-        wxTheBrushList->AddBrush(this);
 }
 
 wxBrush::wxBrush(const wxBitmap& stipple)
 }
 
 wxBrush::wxBrush(const wxBitmap& stipple)
@@ -71,9 +64,6 @@ wxBrush::wxBrush(const wxBitmap& stipple)
     M_BRUSHDATA->m_stipple = stipple;
 
     RealizeResource();
     M_BRUSHDATA->m_stipple = stipple;
 
     RealizeResource();
-
-    if ( wxTheBrushList )
-        wxTheBrushList->AddBrush(this);
 }
 
 void wxBrush::Unshare()
 }
 
 void wxBrush::Unshare()