diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-06 08:27:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-06 09:57:43 +0100 |
commit | 4a22047371503602339d8aee690da0ab536ec7fe (patch) | |
tree | 28c555f4dc26d1a563e0ceb6e8e4d96090c6fc20 /include/vcl | |
parent | a5b3211f072d982e1ee136e864f153836c76a5ca (diff) |
loplugin:unusedmethods
Change-Id: Ia6c0361cd793bb62905b0690f7e2ca554019e935
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105388
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/ColorMask.hxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/vcl/ColorMask.hxx b/include/vcl/ColorMask.hxx index 8705cea6008b..7610aa87e8fe 100644 --- a/include/vcl/ColorMask.hxx +++ b/include/vcl/ColorMask.hxx @@ -107,9 +107,6 @@ public: inline sal_uInt32 GetGreenMask() const; inline sal_uInt32 GetBlueMask() const; - inline void GetColorFor8Bit( BitmapColor& rColor, const sal_uInt8* pPixel ) const; - inline void SetColorFor8Bit( const BitmapColor& rColor, sal_uInt8* pPixel ) const; - inline void GetColorFor16BitMSB( BitmapColor& rColor, const sal_uInt8* pPixel ) const; inline void SetColorFor16BitMSB( const BitmapColor& rColor, sal_uInt8* pPixel ) const; inline void GetColorFor16BitLSB( BitmapColor& rColor, const sal_uInt8* pPixel ) const; @@ -135,17 +132,6 @@ inline sal_uInt32 ColorMask::GetBlueMask() const return maB.mnMask; } -inline void ColorMask::GetColorFor8Bit( BitmapColor& rColor, const sal_uInt8* pPixel ) const -{ - const sal_uInt32 nVal = *pPixel; - MASK_TO_COLOR( nVal, maR.mnMask, maG.mnMask, maB.mnMask, maR.mnShift, maG.mnShift, maR.mnShift, rColor ); -} - -inline void ColorMask::SetColorFor8Bit( const BitmapColor& rColor, sal_uInt8* pPixel ) const -{ - *pPixel = static_cast<sal_uInt8>(COLOR_TO_MASK( rColor, maR.mnMask, maG.mnMask, maB.mnMask, maR.mnShift, maG.mnShift, maB.mnShift, 0/*nAlphaChannel*/ )); -} - inline void ColorMask::GetColorFor16BitMSB( BitmapColor& rColor, const sal_uInt8* pPixel ) const { const sal_uInt32 nVal = pPixel[ 1 ] | ( static_cast<sal_uInt32>(pPixel[ 0 ]) << 8 ); |