diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-02 17:45:45 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-02 18:43:45 +0200 |
commit | 5bdc988482db5c96997681a6d1bad1d9ae22f146 (patch) | |
tree | 05014ace1ca9c21a227b7170afb8b24c0557f36b /sd | |
parent | WaE: unused function (diff) | |
download | core-5bdc988482db5c96997681a6d1bad1d9ae22f146.tar.gz core-5bdc988482db5c96997681a6d1bad1d9ae22f146.zip |
WaE: unused functions
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx b/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx index 8a2ae0b009c6..430cbaca37ff 100644 --- a/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx +++ b/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx @@ -50,51 +50,6 @@ using namespace ::drawinglayer::primitive2d; namespace sd { namespace slidesorter { namespace view { -namespace { - -sal_uInt8 Blend ( - const sal_uInt8 nValue1, - const sal_uInt8 nValue2, - const double nWeight) -{ - const double nValue (nValue1*(1-nWeight) + nValue2 * nWeight); - if (nValue < 0) - return 0; - else if (nValue > 255) - return 255; - else - return (sal_uInt8)nValue; -} - -sal_uInt8 ClampColorChannel (const double nValue) -{ - if (nValue <= 0) - return 0; - else if (nValue >= 255) - return 255; - else - return sal_uInt8(nValue); -} - -sal_uInt8 CalculateColorChannel( - const double nColor1, - const double nColor2, - const double nAlpha1, - const double nAlpha2, - const double nAlpha0) -{ - if (nAlpha0 == 0) - return 0; - - const double nColor0 ((nAlpha1*nColor1 + nAlpha1*nAlpha2*nColor1 + nAlpha2*nColor2) / nAlpha0); - return ClampColorChannel(255 * nColor0); -} - -} // end of anonymous namespace - - - - //===== PageObjectPainter ===================================================== PageObjectPainter::PageObjectPainter ( |