From: Paul Cornett Date: Tue, 5 Jan 2010 17:53:37 +0000 (+0000) Subject: remove never-implemented palette support X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b2bf3ac658bb5679cc8f6dd8791cabb8e72ab3ab remove never-implemented palette support git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 13d315e699..03b77eb5a3 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -14,7 +14,6 @@ #ifndef WX_PRECOMP #include "wx/app.h" - #include "wx/palette.h" #include "wx/icon.h" #include "wx/math.h" #include "wx/image.h" @@ -178,9 +177,6 @@ public: int m_width; int m_height; int m_bpp; -#if wxUSE_PALETTE - wxPalette *m_palette; -#endif // wxUSE_PALETTE }; wxBitmapRefData::wxBitmapRefData() @@ -191,9 +187,6 @@ wxBitmapRefData::wxBitmapRefData() m_width = 0; m_height = 0; m_bpp = 0; -#if wxUSE_PALETTE - m_palette = NULL; -#endif // wxUSE_PALETTE } wxBitmapRefData::~wxBitmapRefData() @@ -203,9 +196,6 @@ wxBitmapRefData::~wxBitmapRefData() if (m_pixbuf) g_object_unref (m_pixbuf); delete m_mask; -#if wxUSE_PALETTE - delete m_palette; -#endif // wxUSE_PALETTE } @@ -666,9 +656,7 @@ bool wxBitmap::LoadFile( const wxString &name, wxBitmapType type ) #if wxUSE_PALETTE wxPalette *wxBitmap::GetPalette() const { - wxCHECK_MSG(IsOk(), NULL, wxT("invalid bitmap")); - - return M_BMPDATA->m_palette; + return NULL; } void wxBitmap::SetPalette(const wxPalette& WXUNUSED(palette)) @@ -900,10 +888,6 @@ wxGDIRefData* wxBitmap::CloneGDIRefData(const wxGDIRefData* data) const gdk_draw_drawable(newRef->m_mask->m_bitmap, gc, oldRef->m_mask->m_bitmap, 0, 0, 0, 0, -1, -1); } -#if wxUSE_PALETTE - // implement this if SetPalette is ever implemented - wxASSERT(oldRef->m_palette == NULL); -#endif return newRef; }