X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04ef50df3a0fa3c343800c554e609f98fc7575cc..8e92ccef9ce18df8c67d6105ac553dba93cf0e43:/src/msw/brush.cpp diff --git a/src/msw/brush.cpp b/src/msw/brush.cpp index 83f9652783..66206940e6 100644 --- a/src/msw/brush.cpp +++ b/src/msw/brush.cpp @@ -58,14 +58,10 @@ wxBrushRefData::~wxBrushRefData(void) // Brushes wxBrush::wxBrush(void) { - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } wxBrush::~wxBrush() { - if (wxTheBrushList) - wxTheBrushList->RemoveBrush(this); } wxBrush::wxBrush(const wxColour& col, int Style) @@ -78,8 +74,6 @@ wxBrush::wxBrush(const wxColour& col, int Style) RealizeResource(); - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } wxBrush::wxBrush(const wxBitmap& stipple) @@ -96,8 +90,6 @@ wxBrush::wxBrush(const wxBitmap& stipple) RealizeResource(); - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } bool wxBrush::RealizeResource(void)