summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /basegfx/source
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/tools/canvastools.cxx24
-rw-r--r--basegfx/source/workbench/bezierclip.cxx32
-rw-r--r--basegfx/source/workbench/convexhull.cxx2
3 files changed, 17 insertions, 41 deletions
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 <class Functor> 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 <class PointType> double theta( const PointType& p1, const PointType& p2 )