summaryrefslogtreecommitdiff
path: root/tools/source/generic
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-08-02 18:18:24 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-08-02 18:23:38 +0200
commit75596f03ac498795a0d669bc1987e7bc372a53b0 (patch)
tree35c8ae2f71d34b9e9da282dcb4f72c75537d8b92 /tools/source/generic
parent67ecd3b1a23189b99e9509fab0b6c60d8648038a (diff)
callcatcher: remove unused methods
Diffstat (limited to 'tools/source/generic')
-rw-r--r--tools/source/generic/poly.cxx99
-rw-r--r--tools/source/generic/poly2.cxx55
2 files changed, 0 insertions, 154 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index ea1fbb3b8e14..a4ec0283b956 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -676,27 +676,6 @@ Polygon::~Polygon()
// -----------------------------------------------------------------------
-Point* Polygon::ImplGetPointAry()
-{
- DBG_CHKTHIS( Polygon, NULL );
-
- ImplMakeUnique();
- return (Point*)mpImplPolygon->mpPointAry;
-}
-
-// -----------------------------------------------------------------------
-
-sal_uInt8* Polygon::ImplGetFlagAry()
-{
- DBG_CHKTHIS( Polygon, NULL );
-
- ImplMakeUnique();
- mpImplPolygon->ImplCreateFlagArray();
- return mpImplPolygon->mpFlagAry;
-}
-
-// -----------------------------------------------------------------------
-
const Point* Polygon::GetConstPointAry() const
{
DBG_CHKTHIS( Polygon, NULL );
@@ -773,32 +752,6 @@ sal_Bool Polygon::HasFlags() const
// -----------------------------------------------------------------------
-sal_Bool Polygon::IsControl(sal_uInt16 nPos) const
-{
- DBG_CHKTHIS( Polygon, NULL );
- DBG_ASSERT( nPos < mpImplPolygon->mnPoints,
- "Polygon::GetFlags(): nPos >= nPoints" );
- PolyFlags eFlags = mpImplPolygon->mpFlagAry ?
- (PolyFlags) mpImplPolygon->mpFlagAry[ nPos ] : POLY_NORMAL;
-
- return( POLY_CONTROL == eFlags );
-}
-
-// -----------------------------------------------------------------------
-
-sal_Bool Polygon::IsSmooth(sal_uInt16 nPos) const
-{
- DBG_CHKTHIS( Polygon, NULL );
- DBG_ASSERT( nPos < mpImplPolygon->mnPoints,
- "Polygon::GetFlags(): nPos >= nPoints" );
- PolyFlags eFlags = mpImplPolygon->mpFlagAry ?
- (PolyFlags) mpImplPolygon->mpFlagAry[ nPos ] : POLY_NORMAL;
-
- return( ( POLY_SMOOTH == eFlags ) || ( POLY_SYMMTR == eFlags ) );
-}
-
-// -----------------------------------------------------------------------
-
sal_Bool Polygon::IsRect() const
{
sal_Bool bIsRect = sal_False;
@@ -1087,38 +1040,6 @@ void Polygon::AdaptiveSubdivide( Polygon& rResult, const double d ) const
// -----------------------------------------------------------------------
-void Polygon::GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
-{
- const PolyPolygon aTmp( *this );
- aTmp.GetIntersection( rPolyPoly, rResult );
-}
-
-// -----------------------------------------------------------------------
-
-void Polygon::GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
-{
- const PolyPolygon aTmp( *this );
- aTmp.GetUnion( rPolyPoly, rResult );
-}
-
-// -----------------------------------------------------------------------
-
-void Polygon::GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
-{
- const PolyPolygon aTmp( *this );
- aTmp.GetDifference( rPolyPoly, rResult );
-}
-
-// -----------------------------------------------------------------------
-
-void Polygon::GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
-{
- const PolyPolygon aTmp( *this );
- aTmp.GetXOR( rPolyPoly, rResult );
-}
-
-// -----------------------------------------------------------------------
-
void Polygon::ImplReduceEdges( Polygon& rPoly, const double& rArea, sal_uInt16 nPercent )
{
const double fBound = 2000.0 * ( 100 - nPercent ) * 0.01;
@@ -1654,14 +1575,6 @@ Rectangle Polygon::GetBoundRect() const
// -----------------------------------------------------------------------
-double Polygon::GetArea() const
-{
- const double fArea = GetSignedArea();
- return( ( fArea < 0.0 ) ? -fArea : fArea );
-}
-
-// -----------------------------------------------------------------------
-
double Polygon::GetSignedArea() const
{
DBG_CHKTHIS( Polygon, NULL );
@@ -1791,18 +1704,6 @@ void Polygon::Insert( sal_uInt16 nPos, const Polygon& rPoly )
// -----------------------------------------------------------------------
-void Polygon::Remove( sal_uInt16 nPos, sal_uInt16 nCount )
-{
- DBG_CHKTHIS( Polygon, NULL );
- if( nCount && ( nPos < mpImplPolygon->mnPoints ) )
- {
- ImplMakeUnique();
- mpImplPolygon->ImplRemove( nPos, nCount );
- }
-}
-
-// -----------------------------------------------------------------------
-
Point& Polygon::operator[]( sal_uInt16 nPos )
{
DBG_CHKTHIS( Polygon, NULL );
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index fac5cf8c2d20..d4c5d95e2b8e 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -541,61 +541,6 @@ void PolyPolygon::Rotate( const Point& rCenter, double fSin, double fCos )
// -----------------------------------------------------------------------
-void PolyPolygon::SlantX( long nYRef, double fSin, double fCos )
-{
- DBG_CHKTHIS( PolyPolygon, NULL );
-
- // Referenzcounter beruecksichtigen
- if( mpImplPolyPolygon->mnRefCount > 1 )
- {
- mpImplPolyPolygon->mnRefCount--;
- mpImplPolyPolygon = new ImplPolyPolygon( *mpImplPolyPolygon );
- }
-
- // Punkte verschieben
- for ( sal_uInt16 i = 0, nCount = mpImplPolyPolygon->mnCount; i < nCount; i++ )
- mpImplPolyPolygon->mpPolyAry[ i ]->SlantX( nYRef, fSin, fCos );
-}
-
-// -----------------------------------------------------------------------
-
-void PolyPolygon::SlantY( long nXRef, double fSin, double fCos )
-{
- DBG_CHKTHIS( PolyPolygon, NULL );
-
- // Referenzcounter beruecksichtigen
- if( mpImplPolyPolygon->mnRefCount > 1 )
- {
- mpImplPolyPolygon->mnRefCount--;
- mpImplPolyPolygon = new ImplPolyPolygon( *mpImplPolyPolygon );
- }
-
- // Punkte verschieben
- for ( sal_uInt16 i = 0, nCount = mpImplPolyPolygon->mnCount; i < nCount; i++ )
- mpImplPolyPolygon->mpPolyAry[ i ]->SlantY( nXRef, fSin, fCos );
-}
-
-// -----------------------------------------------------------------------
-
-void PolyPolygon::Distort( const Rectangle& rRefRect, const Polygon& rDistortedRect )
-{
- DBG_CHKTHIS( PolyPolygon, NULL );
-
- // Referenzcounter beruecksichtigen
- if( mpImplPolyPolygon->mnRefCount > 1 )
- {
- mpImplPolyPolygon->mnRefCount--;
- mpImplPolyPolygon = new ImplPolyPolygon( *mpImplPolyPolygon );
- }
-
- // Punkte verschieben
- for ( sal_uInt16 i = 0, nCount = mpImplPolyPolygon->mnCount; i < nCount; i++ )
- mpImplPolyPolygon->mpPolyAry[ i ]->Distort( rRefRect, rDistortedRect );
-}
-
-
-// -----------------------------------------------------------------------
-
void PolyPolygon::Clip( const Rectangle& rRect )
{
// Polygon-Clippen