diff options
author | Marc-André Laverdière-Papineau <marc-andre@atc.tcs.com> | 2012-01-15 18:24:58 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-18 20:02:19 -0500 |
commit | 05a8ecca55d96b823348fa390482be6cfee64f69 (patch) | |
tree | c7deb8edaac63f4edca00c281ecacfa78ee96ae9 /tools | |
parent | 225647779959d24cfdaea62968f518cc52533a90 (diff) |
removed some dead code
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/color.hxx | 1 | ||||
-rw-r--r-- | tools/source/generic/color.cxx | 15 |
2 files changed, 0 insertions, 16 deletions
diff --git a/tools/inc/tools/color.hxx b/tools/inc/tools/color.hxx index ba9d7df5806d..a9fe58975e17 100644 --- a/tools/inc/tools/color.hxx +++ b/tools/inc/tools/color.hxx @@ -156,7 +156,6 @@ public: void IncreaseLuminance( sal_uInt8 cLumInc ); void DecreaseLuminance( sal_uInt8 cLumDec ); - void IncreaseContrast( sal_uInt8 cContInc ); void DecreaseContrast( sal_uInt8 cContDec ); void Invert(); diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index f06d3d1a5ac0..aa848f72bbbe 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -102,21 +102,6 @@ void Color::DecreaseLuminance( sal_uInt8 cLumDec ) // ----------------------------------------------------------------------- -void Color::IncreaseContrast( sal_uInt8 cContInc ) -{ - if( cContInc) - { - const double fM = 128.0 / ( 128.0 - 0.4985 * cContInc ); - const double fOff = 128.0 - fM * 128.0; - - SetRed( (sal_uInt8) SAL_BOUND( _FRound( COLORDATA_RED( mnColor ) * fM + fOff ), 0L, 255L ) ); - SetGreen( (sal_uInt8) SAL_BOUND( _FRound( COLORDATA_GREEN( mnColor ) * fM + fOff ), 0L, 255L ) ); - SetBlue( (sal_uInt8) SAL_BOUND( _FRound( COLORDATA_BLUE( mnColor ) * fM + fOff ), 0L, 255L ) ); - } -} - -// ----------------------------------------------------------------------- - void Color::DecreaseContrast( sal_uInt8 cContDec ) { if( cContDec ) |