From 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Sat, 22 Feb 2014 21:20:15 +0100 Subject: Remove unneccessary comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- basegfx/source/tools/canvastools.cxx | 24 ------------------------ basegfx/source/workbench/bezierclip.cxx | 32 ++++++++++++++++---------------- basegfx/source/workbench/convexhull.cxx | 2 +- basegfx/test/basegfx1d.cxx | 2 +- basegfx/test/basegfx2d.cxx | 4 ++-- basegfx/test/basegfx3d.cxx | 4 ++-- basegfx/test/basegfxtools.cxx | 2 +- basegfx/test/boxclipper.cxx | 2 +- basegfx/test/clipstate.cxx | 2 +- basegfx/test/genericclipper.cxx | 2 +- 10 files changed, 26 insertions(+), 50 deletions(-) (limited to 'basegfx') diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx index efcf16c148d0..a08a1779ffdf 100644 --- a/basegfx/source/tools/canvastools.cxx +++ b/basegfx/source/tools/canvastools.cxx @@ -101,8 +101,6 @@ namespace basegfx } } - //--------------------------------------------------------------------------------------- - uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > bezierSequenceSequenceFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly ) { const sal_uInt32 nNumPolies( rPolyPoly.count() ); @@ -119,8 +117,6 @@ namespace basegfx return outputSequence; } - //--------------------------------------------------------------------------------------- - uno::Sequence< uno::Sequence< geometry::RealPoint2D > > pointSequenceSequenceFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly ) { const sal_uInt32 nNumPolies( rPolyPoly.count() ); @@ -137,8 +133,6 @@ namespace basegfx return outputSequence; } - //--------------------------------------------------------------------------------------- - uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice, const ::basegfx::B2DPolygon& rPoly ) { @@ -170,8 +164,6 @@ namespace basegfx return xRes; } - //--------------------------------------------------------------------------------------- - uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice, const ::basegfx::B2DPolyPolygon& rPolyPoly ) { @@ -204,8 +196,6 @@ namespace basegfx return xRes; } - //--------------------------------------------------------------------------------------- - ::basegfx::B2DPolygon polygonFromPoint2DSequence( const uno::Sequence< geometry::RealPoint2D >& points ) { const sal_Int32 nCurrSize( points.getLength() ); @@ -218,8 +208,6 @@ namespace basegfx return aPoly; } - //--------------------------------------------------------------------------------------- - ::basegfx::B2DPolyPolygon polyPolygonFromPoint2DSequenceSequence( const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points ) { ::basegfx::B2DPolyPolygon aRes; @@ -232,8 +220,6 @@ namespace basegfx return aRes; } - //--------------------------------------------------------------------------------------- - ::basegfx::B2DPolygon polygonFromBezier2DSequence( const uno::Sequence< geometry::RealBezierSegment2D >& curves ) { const sal_Int32 nSize(curves.getLength()); @@ -266,8 +252,6 @@ namespace basegfx return aRetval; } - //--------------------------------------------------------------------------------------- - ::basegfx::B2DPolyPolygon polyPolygonFromBezier2DSequenceSequence( const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& curves ) { ::basegfx::B2DPolyPolygon aRes; @@ -280,8 +264,6 @@ namespace basegfx return aRes; } - //--------------------------------------------------------------------------------------- - ::basegfx::B2DPolyPolygon b2DPolyPolygonFromXPolyPolygon2D( const uno::Reference< rendering::XPolyPolygon2D >& xPoly ) { ::basegfx::unotools::UnoPolyPolygon* pPolyImpl = @@ -336,8 +318,6 @@ namespace basegfx } } - //--------------------------------------------------------------------------------------- - ::basegfx::B2DHomMatrix& homMatrixFromAffineMatrix( ::basegfx::B2DHomMatrix& output, const geometry::AffineMatrix2D& input ) { @@ -411,8 +391,6 @@ namespace basegfx return output; } - //--------------------------------------------------------------------------------------- - ::basegfx::B2DHomMatrix& homMatrixFromMatrix( ::basegfx::B2DHomMatrix& output, const geometry::Matrix2D& input ) { @@ -427,8 +405,6 @@ namespace basegfx return output; } - //--------------------------------------------------------------------------------------- - geometry::RealSize2D size2DFromB2DSize( const ::basegfx::B2DVector& rVec ) { return geometry::RealSize2D( rVec.getX(), diff --git a/basegfx/source/workbench/bezierclip.cxx b/basegfx/source/workbench/bezierclip.cxx index 7d99dfafc032..2ba7302c7ca5 100644 --- a/basegfx/source/workbench/bezierclip.cxx +++ b/basegfx/source/workbench/bezierclip.cxx @@ -45,7 +45,7 @@ -// ----------------------------------------------------------------------------- + /* Implementation of the so-called 'Fat-Line Bezier Clipping Algorithm' by Sederberg et al. * @@ -54,7 +54,7 @@ * (9), 1990, pp. 538--549 */ -// ----------------------------------------------------------------------------- + /* Misc helper * =========== @@ -74,20 +74,20 @@ int fallFac( int n, int k ) return res; } -// ----------------------------------------------------------------------------- + int fac( int n ) { return fallFac(n, n); } -// ----------------------------------------------------------------------------- + /* Bezier fat line clipping part * ============================= */ -// ----------------------------------------------------------------------------- + void Impl_calcFatLine( FatLine& line, const Bezier& c ) { @@ -340,7 +340,7 @@ bool Impl_calcSafeParams_clip( double& t1, #endif } -// ----------------------------------------------------------------------------- + void Impl_deCasteljauAt( Bezier& part1, Bezier& part2, @@ -389,7 +389,7 @@ void Impl_deCasteljauAt( Bezier& part1, } } -// ----------------------------------------------------------------------------- + void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1, double t2_c1, const Bezier& c2_part, const FatLine& bounds_c2 ) @@ -473,7 +473,7 @@ void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1, offset += 1; } -// ----------------------------------------------------------------------------- + void printResultWithFinalCurves( const Bezier& c1, const Bezier& c1_part, const Bezier& c2, const Bezier& c2_part, @@ -548,7 +548,7 @@ void printResultWithFinalCurves( const Bezier& c1, const Bezier& c1_part, offset += 1; } -// ----------------------------------------------------------------------------- + /** determine parameter ranges [0,t1) and (t2,1] on c1, where c1 is guaranteed to lie outside c2. Returns false, if the two curves don't even intersect. @@ -628,13 +628,13 @@ bool Impl_calcClipRange( double& t1, return false; } -// ----------------------------------------------------------------------------- + /* Tangent intersection part * ========================= */ -// ----------------------------------------------------------------------------- + void Impl_calcFocus( Bezier& res, const Bezier& c ) { @@ -761,7 +761,7 @@ void Impl_calcFocus( Bezier& res, const Bezier& c ) res.p3.y = c.p3.y + 3*fRes[1]*(c.p3.x - c.p2.x); } -// ----------------------------------------------------------------------------- + bool Impl_calcSafeParams_focus( double& t1, double& t2, @@ -900,7 +900,7 @@ bool Impl_calcSafeParams_focus( double& t1, #endif } -// ----------------------------------------------------------------------------- + /** Calc all values t_i on c1, for which safeRanges functor does not give a safe range on c1 and c2. @@ -1144,7 +1144,7 @@ template void Impl_applySafeRanges_rec( ::std::back_insert_itera } } -// ----------------------------------------------------------------------------- + struct ClipBezierFunctor { @@ -1159,7 +1159,7 @@ struct ClipBezierFunctor } }; -// ----------------------------------------------------------------------------- + struct BezierTangencyFunctor { @@ -1187,7 +1187,7 @@ struct BezierTangencyFunctor } }; -// ----------------------------------------------------------------------------- + /** Perform a bezier clip (curve against curve) diff --git a/basegfx/source/workbench/convexhull.cxx b/basegfx/source/workbench/convexhull.cxx index 579413e16ea1..aba5c1a94b69 100644 --- a/basegfx/source/workbench/convexhull.cxx +++ b/basegfx/source/workbench/convexhull.cxx @@ -23,7 +23,7 @@ #include "bezierclip.hxx" -// ----------------------------------------------------------------------------- + /* Implements the theta function from Sedgewick: Algorithms in XXX, chapter 24 */ template double theta( const PointType& p1, const PointType& p2 ) diff --git a/basegfx/test/basegfx1d.cxx b/basegfx/test/basegfx1d.cxx index 5b0b24bf4d4c..8d190cb1d6c1 100644 --- a/basegfx/test/basegfx1d.cxx +++ b/basegfx/test/basegfx1d.cxx @@ -55,7 +55,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class b1drange -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(basegfx1d::b1drange); } // namespace basegfx1d diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx index afa065c0ac57..ba59c5f01e99 100644 --- a/basegfx/test/basegfx2d.cxx +++ b/basegfx/test/basegfx2d.cxx @@ -1285,7 +1285,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class b2dvector -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2dsvgdimpex); CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::b2drange); @@ -1304,7 +1304,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::bcolor); } // namespace basegfx2d -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/basegfx/test/basegfx3d.cxx b/basegfx/test/basegfx3d.cxx index 96f0b5748ca4..7665cfcd2986 100644 --- a/basegfx/test/basegfx3d.cxx +++ b/basegfx/test/basegfx3d.cxx @@ -165,7 +165,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class b3dvector -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dhommatrix); CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dpoint); CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3drange); @@ -174,7 +174,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector); } // namespace basegfx3d -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/basegfx/test/basegfxtools.cxx b/basegfx/test/basegfxtools.cxx index 7ff301755902..01ae9634f4ad 100644 --- a/basegfx/test/basegfxtools.cxx +++ b/basegfx/test/basegfxtools.cxx @@ -93,7 +93,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(basegfxtools::KeyStopLerpTest); } // namespace basegfxtools diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx index 9b8bf10254f4..f96c7eb0d52f 100644 --- a/basegfx/test/boxclipper.cxx +++ b/basegfx/test/boxclipper.cxx @@ -428,7 +428,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::boxclipper); } // namespace basegfx2d diff --git a/basegfx/test/clipstate.cxx b/basegfx/test/clipstate.cxx index dc925409fea9..2f094e5bac4c 100644 --- a/basegfx/test/clipstate.cxx +++ b/basegfx/test/clipstate.cxx @@ -157,7 +157,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::clipstate); } // namespace basegfx2d diff --git a/basegfx/test/genericclipper.cxx b/basegfx/test/genericclipper.cxx index b60b067b45f0..66c503a4383c 100644 --- a/basegfx/test/genericclipper.cxx +++ b/basegfx/test/genericclipper.cxx @@ -191,7 +191,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(basegfx2d::genericclipper); } // namespace basegfx2d -- cgit