[Libreoffice-commits] core.git: include/basegfx sax/inc shell/inc shell/source stoc/source

2015-07-06 Thread Noel Grandin
 include/basegfx/color/bcolor.hxx  |   31 --
 include/basegfx/matrix/b2dhommatrixtools.hxx  |1 
 include/basegfx/pixel/bpixel.hxx  |5 -
 include/basegfx/range/b1drange.hxx|   22 
 include/basegfx/range/b2ibox.hxx  |   57 
 include/basegfx/range/b2irange.hxx|   43 -
 include/basegfx/range/b3drange.hxx|   65 --
 include/basegfx/tuple/b2i64tuple.hxx  |   14 ---
 include/basegfx/tuple/b3ituple.hxx|   18 ---
 include/basegfx/vector/b3dvector.hxx  |   26 -
 sax/inc/xml2utf.hxx   |4 
 shell/inc/internal/i_xml_parser_event_handler.hxx |7 -
 shell/source/unix/sysshell/recently_used_file_handler.cxx |7 -
 stoc/source/corereflection/base.hxx   |6 -
 stoc/source/javavm/javavm.hxx |3 
 15 files changed, 309 deletions(-)

New commits:
commit 04c0b70c9bbd7c8d6e30a95c5693d283c992fd98
Author: Noel Grandin 
Date:   Mon Jul 6 10:06:45 2015 +0300

loplugin:unusedmethods sax,shell,stoc,basegfx

Change-Id: I8f3871fd4e82b6850718b6f2a8757f3043d00017

diff --git a/include/basegfx/color/bcolor.hxx b/include/basegfx/color/bcolor.hxx
index 2bdd420..4358e05 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( 
::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
 
diff --git a/include/basegfx/matrix/b2dhommatrixtools.hxx 
b/include/basegfx/matrix/b2dhommatrixtools.hxx
index b2aef89..41a17ec 100644
--- a/include/basegfx/matrix/b2dhommatrixtools.hxx
+++ b/include/basegfx/matrix/b2dhommatrixtools.hxx
@@ -218,7 +218,6 @@ namespace basegfx
 const B2DVector& getScale() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
maScale; }
 const B2DVector& getTranslate() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
maTranslate; }
 double getRotate() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
mfRotate; }
-double getShearX() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
mfShearX; }
 };
 } // end of namespace tools
 
diff --git a/include/basegfx/pixel/bpixel.hxx b/include/basegfx/pixel/bpixel.hxx
index cf5c7a3..fda6a79 100644
--- a/include/basegfx/pixel/bpixel.hxx
+++ b/include/basegfx/pixel/bpixel.hxx
@@ -95,21 +95,16 @@ namespace basegfx
 sal_uInt8 getGreen() const { return maPixelUnion.maRGBO.mnG; }
 sal_uInt8 getBlue() const { return maPixelUnion.maRGBO.mnB; }
 sal_uInt8 getOpacity() const { return maPixelUnion.maRGBO.mnO; }
-sal_uInt32 getRedGreenBlueOpacity() const { return 
maPixelUnion.maCombinedRGBO.mnValue; }
 
 // data access write
 void setRed(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnR = nNew; }
 void setGreen(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnG = nNew; }
 void setBlue(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnB = nNew; }
 void setOpacity

[Libreoffice-commits] core.git: include/basegfx sax/inc shell/inc shell/source stoc/source

2015-07-03 Thread Michael Stahl
 include/basegfx/color/bcolor.hxx  |   31 ++
 include/basegfx/matrix/b2dhommatrixtools.hxx  |1 
 include/basegfx/pixel/bpixel.hxx  |5 +
 include/basegfx/range/b1drange.hxx|   22 
 include/basegfx/range/b2ibox.hxx  |   57 
 include/basegfx/range/b2irange.hxx|   50 ++
 include/basegfx/range/b3drange.hxx|   65 ++
 include/basegfx/tuple/b2i64tuple.hxx  |   14 +++
 include/basegfx/tuple/b3ituple.hxx|   18 +++
 include/basegfx/vector/b3dvector.hxx  |   26 +
 sax/inc/xml2utf.hxx   |4 
 shell/inc/internal/i_xml_parser_event_handler.hxx |7 +
 shell/source/unix/sysshell/recently_used_file_handler.cxx |7 +
 stoc/source/corereflection/base.hxx   |6 +
 stoc/source/javavm/javavm.hxx |3 
 15 files changed, 316 insertions(+)

New commits:
commit a6f5770b46506a22eae0d641ad48f9b6d239
Author: Michael Stahl 
Date:   Fri Jul 3 16:53:45 2015 +0200

Revert "loplugin:unusedmethods sax,shell,stoc,basegfx"

The basegfx changes appear to break Windows builds.

This reverts commit 3b32c5898ff4e744d3f18b00421b433500426d74.

diff --git a/include/basegfx/color/bcolor.hxx b/include/basegfx/color/bcolor.hxx
index 4358e05..2bdd420 100644
--- a/include/basegfx/color/bcolor.hxx
+++ b/include/basegfx/color/bcolor.hxx
@@ -131,6 +131,15 @@ 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
 {
@@ -155,6 +164,16 @@ 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));
@@ -187,6 +206,18 @@ namespace basegfx
 return static_cast( 
::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
 
diff --git a/include/basegfx/matrix/b2dhommatrixtools.hxx 
b/include/basegfx/matrix/b2dhommatrixtools.hxx
index 41a17ec..b2aef89 100644
--- a/include/basegfx/matrix/b2dhommatrixtools.hxx
+++ b/include/basegfx/matrix/b2dhommatrixtools.hxx
@@ -218,6 +218,7 @@ namespace basegfx
 const B2DVector& getScale() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
maScale; }
 const B2DVector& getTranslate() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
maTranslate; }
 double getRotate() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
mfRotate; }
+double getShearX() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
mfShearX; }
 };
 } // end of namespace tools
 
diff --git a/include/basegfx/pixel/bpixel.hxx b/include/basegfx/pixel/bpixel.hxx
index fda6a79..cf5c7a3 100644
--- a/include/basegfx/pixel/bpixel.hxx
+++ b/include/basegfx/pixel/bpixel.hxx
@@ -95,16 +95,21 @@ namespace basegfx
 sal_uInt8 getGreen() const { return maPixelUnion.maRGBO.mnG; }
 sal_uInt8 getBlue() const { return maPixelUnion.maRGBO.mnB; }
 sal_uInt8 getOpacity() const { return maPixelUnion.maRGBO.mnO; }
+sal_uInt32 getRedGreenBlueOpacity() const { return 
maPixelUnion.maCombinedRGBO.mnValue; }
 
 // data access write
 void setRed(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnR = nNew; }
 void setGreen(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnG = nNew; }
 void se

[Libreoffice-commits] core.git: include/basegfx sax/inc shell/inc shell/source stoc/source

2015-07-03 Thread Noel Grandin
 include/basegfx/color/bcolor.hxx  |   31 --
 include/basegfx/matrix/b2dhommatrixtools.hxx  |1 
 include/basegfx/pixel/bpixel.hxx  |5 -
 include/basegfx/range/b1drange.hxx|   22 
 include/basegfx/range/b2ibox.hxx  |   57 
 include/basegfx/range/b2irange.hxx|   50 --
 include/basegfx/range/b3drange.hxx|   65 --
 include/basegfx/tuple/b2i64tuple.hxx  |   14 ---
 include/basegfx/tuple/b3ituple.hxx|   18 ---
 include/basegfx/vector/b3dvector.hxx  |   26 -
 sax/inc/xml2utf.hxx   |4 
 shell/inc/internal/i_xml_parser_event_handler.hxx |7 -
 shell/source/unix/sysshell/recently_used_file_handler.cxx |7 -
 stoc/source/corereflection/base.hxx   |6 -
 stoc/source/javavm/javavm.hxx |3 
 15 files changed, 316 deletions(-)

New commits:
commit 3b32c5898ff4e744d3f18b00421b433500426d74
Author: Noel Grandin 
Date:   Thu Jul 2 14:21:30 2015 +0200

loplugin:unusedmethods sax,shell,stoc,basegfx

Change-Id: Ia5d63f7153e4b02acc5e206739316264d6d1184e

diff --git a/include/basegfx/color/bcolor.hxx b/include/basegfx/color/bcolor.hxx
index 2bdd420..4358e05 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( 
::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
 
diff --git a/include/basegfx/matrix/b2dhommatrixtools.hxx 
b/include/basegfx/matrix/b2dhommatrixtools.hxx
index b2aef89..41a17ec 100644
--- a/include/basegfx/matrix/b2dhommatrixtools.hxx
+++ b/include/basegfx/matrix/b2dhommatrixtools.hxx
@@ -218,7 +218,6 @@ namespace basegfx
 const B2DVector& getScale() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
maScale; }
 const B2DVector& getTranslate() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
maTranslate; }
 double getRotate() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
mfRotate; }
-double getShearX() const { const_cast< 
B2DHomMatrixBufferedOnDemandDecompose* >(this)->impCheckDecompose(); return 
mfShearX; }
 };
 } // end of namespace tools
 
diff --git a/include/basegfx/pixel/bpixel.hxx b/include/basegfx/pixel/bpixel.hxx
index cf5c7a3..fda6a79 100644
--- a/include/basegfx/pixel/bpixel.hxx
+++ b/include/basegfx/pixel/bpixel.hxx
@@ -95,21 +95,16 @@ namespace basegfx
 sal_uInt8 getGreen() const { return maPixelUnion.maRGBO.mnG; }
 sal_uInt8 getBlue() const { return maPixelUnion.maRGBO.mnB; }
 sal_uInt8 getOpacity() const { return maPixelUnion.maRGBO.mnO; }
-sal_uInt32 getRedGreenBlueOpacity() const { return 
maPixelUnion.maCombinedRGBO.mnValue; }
 
 // data access write
 void setRed(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnR = nNew; }
 void setGreen(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnG = nNew; }
 void setBlue(sal_uInt8 nNew) { maPixelUnion.maRGBO.mnB = nNew; }
 void setOpacit