summaryrefslogtreecommitdiff
path: root/tools/source/generic/color.cxx
diff options
context:
space:
mode:
authorMarc-André Laverdière-Papineau <marc-andre@atc.tcs.com>2012-01-15 18:24:58 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-01-18 20:02:19 -0500
commit05a8ecca55d96b823348fa390482be6cfee64f69 (patch)
treec7deb8edaac63f4edca00c281ecacfa78ee96ae9 /tools/source/generic/color.cxx
parent225647779959d24cfdaea62968f518cc52533a90 (diff)
removed some dead code
Diffstat (limited to 'tools/source/generic/color.cxx')
-rw-r--r--tools/source/generic/color.cxx15
1 files changed, 0 insertions, 15 deletions
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 )