summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-25 09:17:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-25 12:32:53 +0100
commitbfd33a826cf842de8fce9e331b24d25c1bc58b28 (patch)
tree11bca0b4bdaadbf25b60857a2e7ff156bbb32223 /tools/source
parentd3714207b1d8cc323a639a942121b6c1aa4cd61b (diff)
callcatcher: update unused code
Change-Id: I735264eb32ebdd165d23a4717f0329f666b8b140
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/generic/color.cxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 453feae9c2e1..07fdd00fd7c4 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -115,34 +115,6 @@ bool Color::IsBright() const
return GetLuminance() >= 245;
}
-void Color::ApplyTintOrShade(sal_Int16 n100thPercent)
-{
- if (n100thPercent > 0)
- {
- basegfx::BColor aBColor = basegfx::tools::rgb2hsl(getBColor());
-
- double fFactor = std::abs(n100thPercent) / 10000.0;
- aBColor.setBlue(aBColor.getBlue() * fFactor + (100.0 - aBColor.getBlue()));
- aBColor = basegfx::tools::hsl2rgb(aBColor);
-
- SetRed(sal_uInt8((aBColor.getRed() * 255.0) + 0.5));
- SetGreen(sal_uInt8((aBColor.getGreen() * 255.0) + 0.5));
- SetBlue(sal_uInt8((aBColor.getBlue() * 255.0) + 0.5));
- }
- else if (n100thPercent < 0)
- {
- basegfx::BColor aBColor = basegfx::tools::rgb2hsl(getBColor());
-
- double fFactor = std::abs(n100thPercent) / 10000.0;
- aBColor.setBlue(aBColor.getBlue() * fFactor);
- aBColor = basegfx::tools::hsl2rgb(aBColor);
-
- SetRed(sal_uInt8((aBColor.getRed() * 255.0) + 0.5));
- SetGreen(sal_uInt8((aBColor.getGreen() * 255.0) + 0.5));
- SetBlue(sal_uInt8((aBColor.getBlue() * 255.0) + 0.5));
- }
-}
-
// color space conversion
void Color::RGBtoHSB( sal_uInt16& nHue, sal_uInt16& nSat, sal_uInt16& nBri ) const