diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-08-02 18:18:24 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-08-02 18:23:38 +0200 |
commit | 75596f03ac498795a0d669bc1987e7bc372a53b0 (patch) | |
tree | 35c8ae2f71d34b9e9da282dcb4f72c75537d8b92 /tools | |
parent | 67ecd3b1a23189b99e9509fab0b6c60d8648038a (diff) |
callcatcher: remove unused methods
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/poly.hxx | 15 | ||||
-rw-r--r-- | tools/source/generic/poly.cxx | 99 | ||||
-rw-r--r-- | tools/source/generic/poly2.cxx | 55 |
3 files changed, 0 insertions, 169 deletions
diff --git a/tools/inc/tools/poly.hxx b/tools/inc/tools/poly.hxx index 02d2355e5af9..83c0b6c76965 100644 --- a/tools/inc/tools/poly.hxx +++ b/tools/inc/tools/poly.hxx @@ -123,9 +123,6 @@ private: public: - Point* ImplGetPointAry(); - sal_uInt8* ImplGetFlagAry(); - static void ImplReduceEdges( Polygon& rPoly, const double& rArea, sal_uInt16 nPercent ); void ImplRead( SvStream& rIStream ); void ImplWrite( SvStream& rOStream ) const; @@ -158,8 +155,6 @@ public: PolyFlags GetFlags( sal_uInt16 nPos ) const; sal_Bool HasFlags() const; - sal_Bool IsControl( sal_uInt16 nPos ) const; - sal_Bool IsSmooth( sal_uInt16 nPos ) const; sal_Bool IsRect() const; void SetSize( sal_uInt16 nNewSize ); @@ -168,7 +163,6 @@ public: void Clear(); Rectangle GetBoundRect() const; - double GetArea() const; double GetSignedArea() const; sal_Bool IsInside( const Point& rPt ) const; sal_Bool IsRightOrientated() const; @@ -196,11 +190,6 @@ public: */ void AdaptiveSubdivide( Polygon& rResult, const double d = 1.0 ) const; - void GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const; - void GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const; - void GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const; - void GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const; - void Move( long nHorzMove, long nVertMove ); void Translate( const Point& rTrans ); void Scale( double fScaleX, double fScaleY ); @@ -212,7 +201,6 @@ public: void Insert( sal_uInt16 nPos, const Point& rPt, PolyFlags eFlags = POLY_NORMAL ); void Insert( sal_uInt16 nPos, const Polygon& rPoly ); - void Remove( sal_uInt16 nPos, sal_uInt16 nCount ); const Point& operator[]( sal_uInt16 nPos ) const { return GetPoint( nPos ); } Point& operator[]( sal_uInt16 nPos ); @@ -309,9 +297,6 @@ public: void Scale( double fScaleX, double fScaleY ); void Rotate( const Point& rCenter, double fSin, double fCos ); void Rotate( const Point& rCenter, sal_uInt16 nAngle10 ); - void SlantX( long nYRef, double fSin, double fCos ); - void SlantY( long nXRef, double fSin, double fCos ); - void Distort( const Rectangle& rRefRect, const Polygon& rDistortedRect ); const Polygon& operator[]( sal_uInt16 nPos ) const { return GetObject( nPos ); } Polygon& operator[]( sal_uInt16 nPos ); 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 |