summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/generic/color.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 4640ef85f290..061435ed61c9 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -28,15 +28,6 @@
#include <tools/helpers.hxx>
#include <basegfx/color/bcolortools.hxx>
-sal_uInt8 Color::GetColorError( const Color& rCompareColor ) const
-{
- const long nErrAbs = labs(long(rCompareColor.R) - R) +
- labs(long(rCompareColor.G) - G) +
- labs(long(rCompareColor.B) - B);
-
- return sal_uInt8(FRound(double(nErrAbs) / 3.0));
-}
-
void Color::IncreaseLuminance(sal_uInt8 cLumInc)
{
R = sal_uInt8(std::clamp(long(R) + cLumInc, 0L, 255L));