diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-02 14:21:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-03 14:16:32 +0200 |
commit | 3b32c5898ff4e744d3f18b00421b433500426d74 (patch) | |
tree | 3b9c9ab876551b1ebf3ee27de53d0e85c0a0dbea /include/basegfx/color | |
parent | 025952f52767fb3508a6725468fe4b1e6ce4c9b1 (diff) |
loplugin:unusedmethods sax,shell,stoc,basegfx
Change-Id: Ia5d63f7153e4b02acc5e206739316264d6d1184e
Diffstat (limited to 'include/basegfx/color')
-rw-r--r-- | include/basegfx/color/bcolor.hxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/basegfx/color/bcolor.hxx b/include/basegfx/color/bcolor.hxx index 2bdd42063b6f..4358e056d26f 100644 --- a/include/basegfx/color/bcolor.hxx +++ b/include/basegfx/color/bcolor.hxx @@ -131,15 +131,6 @@ namespace basegfx return *this; } - // blend to another color using luminance - void blend(const BColor& rColor) - { - const double fLuminance(luminance()); - mfX = rColor.getRed() * fLuminance; - mfY = rColor.getGreen() * fLuminance; - mfZ = rColor.getBlue() * fLuminance; - } - // luminance double luminance() const { @@ -164,16 +155,6 @@ namespace basegfx return sqrt(fDistR * fDistR + fDistG * fDistG + fDistB * fDistB); } - double getMinimumDistance(const BColor& rColor) const - { - const double fDistR(getDistanceRed(rColor)); - const double fDistG(getDistanceGreen(rColor)); - const double fDistB(getDistanceBlue(rColor)); - - double fRetval(fDistR < fDistG ? fDistR : fDistG); - return (fRetval < fDistB ? fRetval : fDistB); - } - double getMaximumDistance(const BColor& rColor) const { const double fDistR(getDistanceRed(rColor)); @@ -206,18 +187,6 @@ namespace basegfx return static_cast<const BColor&>( ::basegfx::B3DTuple::getEmptyTuple() ); } - com::sun::star::uno::Sequence< double > colorToDoubleSequence(const com::sun::star::uno::Reference< com::sun::star::rendering::XGraphicDevice >& /*xGraphicDevice*/) const - { - com::sun::star::uno::Sequence< double > aRet(4); - double* pRet = aRet.getArray(); - - pRet[0] = mfX; - pRet[1] = mfY; - pRet[2] = mfZ; - pRet[3] = 1.0; - - return aRet; - } }; } // end of namespace basegfx |