diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-06 20:36:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-07 00:04:51 +0000 |
commit | 9e7ff6a7e4415ce18b7a68c857bdb86f142a8e5d (patch) | |
tree | 74dddaa383d66fdc9f1eded4a62a6101da201dc7 | |
parent | 92a1ad1f36b6d3cc13135a8c0805508933011577 (diff) |
coverity#1398371 Useless call
Change-Id: I3614bb162cec889ee102e0284b6a3a33a98df470
-rw-r--r-- | basegfx/source/color/bcolortools.cxx | 11 | ||||
-rw-r--r-- | basegfx/test/basegfx2d.cxx | 13 | ||||
-rw-r--r-- | include/basegfx/color/bcolortools.hxx | 4 |
3 files changed, 0 insertions, 28 deletions
diff --git a/basegfx/source/color/bcolortools.cxx b/basegfx/source/color/bcolortools.cxx index 7e139ac83263..095ea50aa5f9 100644 --- a/basegfx/source/color/bcolortools.cxx +++ b/basegfx/source/color/bcolortools.cxx @@ -189,17 +189,6 @@ namespace basegfx { namespace tools } } - BColor rgb2ciexyz( const BColor& rRGBColor ) - { - // from Poynton color faq, and SMPTE RP 177-1993, Derivation - // of Basic Television Color Equations - const double r=rRGBColor.getRed(), g=rRGBColor.getGreen(), b=rRGBColor.getBlue(); - return BColor( - 0.412453*r + 0.35758*g + 0.180423*b, - 0.212671*r + 0.71516*g + 0.072169*b, - 0.019334*r + 0.119193*g + 0.950227*b); - } - } } // end of namespace basegfx /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx index 502f7844c7f4..b0b27efe14ae 100644 --- a/basegfx/test/basegfx2d.cxx +++ b/basegfx/test/basegfx2d.cxx @@ -1211,18 +1211,6 @@ public: tools::rgb2hsv(BColor(.5,.25,.25)) == BColor(0,.5,.5)); } - void ciexyzTest() - { - tools::rgb2ciexyz(maWhite); - tools::rgb2ciexyz(maBlack); - tools::rgb2ciexyz(maRed); - tools::rgb2ciexyz(maGreen); - tools::rgb2ciexyz(maBlue); - tools::rgb2ciexyz(maYellow); - tools::rgb2ciexyz(maMagenta); - tools::rgb2ciexyz(maCyan); - } - // Change the following lines only, if you add, remove or rename // member functions of the current class, // because these macros are need by auto register mechanism. @@ -1230,7 +1218,6 @@ public: CPPUNIT_TEST_SUITE(bcolor); CPPUNIT_TEST(hslTest); CPPUNIT_TEST(hsvTest); - CPPUNIT_TEST(ciexyzTest); CPPUNIT_TEST_SUITE_END(); }; // class b2dvector diff --git a/include/basegfx/color/bcolortools.hxx b/include/basegfx/color/bcolortools.hxx index 2f4222f73040..64cdc95fd789 100644 --- a/include/basegfx/color/bcolortools.hxx +++ b/include/basegfx/color/bcolortools.hxx @@ -39,10 +39,6 @@ namespace basegfx BASEGFX_DLLPUBLIC BColor rgb2hsv(const BColor& rRGBColor); /// Transform from HSV to RGB BASEGFX_DLLPUBLIC BColor hsv2rgb(const BColor& rHSVColor); - - /// Transform from Rec. 709 RGB (D65 white point) into CIE XYZ - BASEGFX_DLLPUBLIC BColor rgb2ciexyz( const BColor& rRGBColor ); - } } // end of namespace basegfx |