summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/color.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-04 21:21:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-04 21:21:24 +0000
commitbc5ad2e5b6d2871fb50686d2b6860debcfbf3f45 (patch)
tree944a697c0c19c989216ca887c85c96d4481bd75c /slideshow/source/engine/color.cxx
parentc45d4d4d1bf9dbf06e17d1647560ae26a4d427c8 (diff)
callcatcher: remove uncalled and uncallable methods
Diffstat (limited to 'slideshow/source/engine/color.cxx')
-rw-r--r--slideshow/source/engine/color.cxx67
1 files changed, 0 insertions, 67 deletions
diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx
index 3d7ca0fd81c7..9151b12a9b89 100644
--- a/slideshow/source/engine/color.cxx
+++ b/slideshow/source/engine/color.cxx
@@ -228,44 +228,6 @@ namespace slideshow
return maHSLTriple.mnLuminance;
}
- double HSLColor::getRed() const
- {
- if( ::basegfx::fTools::equalZero( getSaturation() ) )
- return getLuminance();
-
- return hsl2rgbHelper( 2.0*getLuminance() - mnMagicValue,
- mnMagicValue,
- getHue() + 120.0 );
- }
-
- double HSLColor::getGreen() const
- {
- if( ::basegfx::fTools::equalZero( getSaturation() ) )
- return getLuminance();
-
- return hsl2rgbHelper( 2.0*getLuminance() - mnMagicValue,
- mnMagicValue,
- getHue() );
- }
-
- double HSLColor::getBlue() const
- {
- if( ::basegfx::fTools::equalZero( getSaturation() ) )
- return getLuminance();
-
- return hsl2rgbHelper( 2.0*getLuminance() - mnMagicValue,
- mnMagicValue,
- getHue() - 120.0 );
- }
-
- RGBColor HSLColor::getRGBColor() const
- {
- RGBColor::RGBTriple aColor( hsl2rgb( getHue(),
- getSaturation(),
- getLuminance() ) );
- return RGBColor( aColor.mnRed, aColor.mnGreen, aColor.mnBlue );
- }
-
RGBColor::RGBColor(const RGBColor& rLHS)
{
RGBColor(rLHS.getRed(), rLHS.getGreen(), rLHS.getBlue());
@@ -385,27 +347,6 @@ namespace slideshow
{
}
- double RGBColor::getHue() const
- {
- return rgb2hsl( getRed(),
- getGreen(),
- getBlue() ).mnHue;
- }
-
- double RGBColor::getSaturation() const
- {
- return rgb2hsl( getRed(),
- getGreen(),
- getBlue() ).mnSaturation;
- }
-
- double RGBColor::getLuminance() const
- {
- return rgb2hsl( getRed(),
- getGreen(),
- getBlue() ).mnLuminance;
- }
-
double RGBColor::getRed() const
{
return maRGBTriple.mnRed;
@@ -421,14 +362,6 @@ namespace slideshow
return maRGBTriple.mnBlue;
}
- HSLColor RGBColor::getHSLColor() const
- {
- HSLColor::HSLTriple aColor( rgb2hsl( getRed(),
- getGreen(),
- getBlue() ) );
- return HSLColor( aColor.mnHue, aColor.mnSaturation, aColor.mnLuminance );
- }
-
::cppcanvas::Color::IntSRGBA RGBColor::getIntegerColor() const
{
return ::cppcanvas::makeColor( colorToInt( getRed() ),