summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorEmanuele Fia <emanuele.fia@laptop>2011-11-02 18:54:01 +0100
committerMichael Meeks <michael.meeks@suse.com>2011-11-03 11:22:40 +0000
commit4029a580f725380c395ff9ebc7ed181f376b0a96 (patch)
treec98db4c13e19bd1c30a7974a1e37ac27a40ff4b4 /vcl
parent266defb7639b4d42c8bfc3140bbed649c897f124 (diff)
Removed IsGreyPalette
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/bitmap.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx
index 417ebf796f29..318ba681ffa2 100644
--- a/vcl/source/gdi/bitmap.cxx
+++ b/vcl/source/gdi/bitmap.cxx
@@ -230,26 +230,6 @@ const BitmapPalette& Bitmap::GetGreyPalette( int nEntries )
// ------------------------------------------------------------------
-bool BitmapPalette::IsGreyPalette() const
-{
- // TODO: add an IsGreyPalette flag to BitmapPalette
- // TODO: unless this causes problems binary compatibility
- const int nEntryCount = GetEntryCount();
- if( !nEntryCount ) // NOTE: an empty palette means 1:1 mapping
- return true;
- // see above: only certain entry values will result in a valid call to GetGreyPalette
- if( nEntryCount == 2 || nEntryCount == 4 || nEntryCount == 16 || nEntryCount == 256 )
- {
- const BitmapPalette& rGreyPalette = Bitmap::GetGreyPalette( nEntryCount );
- if( rGreyPalette == *this )
- return true;
- }
- // TODO: is it worth to compare the entries?
- return false;
-}
-
-// ------------------------------------------------------------------
-
Bitmap& Bitmap::operator=( const Bitmap& rBitmap )
{
maPrefSize = rBitmap.maPrefSize;