diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-04 22:41:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-05 10:03:17 +0100 |
commit | c6da7c43e10924597b6566fa5394684299c0a573 (patch) | |
tree | 83449de1af08f9013c89f497d9f8425d12e7d819 /tools | |
parent | af3a393700f77b039e88efc2cf2e6eef450677ff (diff) |
callcatcher: unused methods
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/poly.h | 1 | ||||
-rw-r--r-- | tools/inc/tools/fsys.hxx | 1 | ||||
-rw-r--r-- | tools/inc/tools/poly.hxx | 3 | ||||
-rw-r--r-- | tools/source/fsys/unx.cxx | 11 | ||||
-rw-r--r-- | tools/source/fsys/wntmsc.cxx | 11 | ||||
-rw-r--r-- | tools/source/generic/poly.cxx | 113 |
6 files changed, 0 insertions, 140 deletions
diff --git a/tools/inc/poly.h b/tools/inc/poly.h index 08bb5081c726..11eaccc30de4 100644 --- a/tools/inc/poly.h +++ b/tools/inc/poly.h @@ -61,7 +61,6 @@ public: void ImplSetSize( sal_uInt16 nSize, sal_Bool bResize = sal_True ); void ImplCreateFlagArray(); void ImplSplit( sal_uInt16 nPos, sal_uInt16 nSpace, ImplPolygon* pInitPoly = NULL ); - void ImplRemove( sal_uInt16 nPos, sal_uInt16 nCount ); }; // ------------------- diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx index 5f34c2de413c..21cb239c7d87 100644 --- a/tools/inc/tools/fsys.hxx +++ b/tools/inc/tools/fsys.hxx @@ -348,7 +348,6 @@ public: static String GetAccessDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST ); static String GetSearchDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST ); - static FSysPathStyle GetPathStyle(); }; // -------------- diff --git a/tools/inc/tools/poly.hxx b/tools/inc/tools/poly.hxx index 83c0b6c76965..592326658558 100644 --- a/tools/inc/tools/poly.hxx +++ b/tools/inc/tools/poly.hxx @@ -195,9 +195,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 ); void Insert( sal_uInt16 nPos, const Point& rPt, PolyFlags eFlags = POLY_NORMAL ); void Insert( sal_uInt16 nPos, const Polygon& rPoly ); diff --git a/tools/source/fsys/unx.cxx b/tools/source/fsys/unx.cxx index 0adc7ce8fa03..afef764484c2 100644 --- a/tools/source/fsys/unx.cxx +++ b/tools/source/fsys/unx.cxx @@ -474,17 +474,6 @@ const char *TempDirImpl( char *pBuf ) /************************************************************************* |* -|* DirEntry::GetPathStyle() const -|* -*************************************************************************/ - -FSysPathStyle DirEntry::GetPathStyle() -{ - return FSYS_STYLE_UNX; -} - -/************************************************************************* -|* |* FileStat::SetDateTime |* *************************************************************************/ diff --git a/tools/source/fsys/wntmsc.cxx b/tools/source/fsys/wntmsc.cxx index ab783b45a161..3d8bd9107c06 100644 --- a/tools/source/fsys/wntmsc.cxx +++ b/tools/source/fsys/wntmsc.cxx @@ -110,17 +110,6 @@ int closedir( DIR *pDir ) /************************************************************************* |* -|* DirEntry::GetPathStyle() const -|* -*************************************************************************/ - -FSysPathStyle DirEntry::GetPathStyle() -{ - return FSYS_STYLE_NTFS; -} - -/************************************************************************* -|* |* DirEntry::ToAbs() |* *************************************************************************/ diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index a4ec0283b956..419575de1048 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -303,41 +303,6 @@ void ImplPolygon::ImplSplit( sal_uInt16 nPos, sal_uInt16 nSpace, ImplPolygon* pI // ----------------------------------------------------------------------- -void ImplPolygon::ImplRemove( sal_uInt16 nPos, sal_uInt16 nCount ) -{ - const sal_uInt16 nRemoveCount = Min( (sal_uInt16) ( mnPoints - nPos ), (sal_uInt16) nCount ); - - if( nRemoveCount ) - { - const sal_uInt16 nNewSize = mnPoints - nRemoveCount; - const sal_uInt16 nSecPos = nPos + nRemoveCount; - const sal_uInt16 nRest = mnPoints - nSecPos; - - Point* pNewAry = (Point*) new char[ (sal_uIntPtr) nNewSize * sizeof( Point ) ]; - - memcpy( pNewAry, mpPointAry, nPos * sizeof( Point ) ); - memcpy( pNewAry + nPos, mpPointAry + nSecPos, nRest * sizeof( Point ) ); - - delete[] (char*) mpPointAry; - - // ggf. FlagArray beruecksichtigen - if( mpFlagAry ) - { - sal_uInt8* pNewFlagAry = new sal_uInt8[ nNewSize ]; - - memcpy( pNewFlagAry, mpFlagAry, nPos ); - memcpy( pNewFlagAry + nPos, mpFlagAry + nSecPos, nRest ); - delete[] mpFlagAry; - mpFlagAry = pNewFlagAry; - } - - mpPointAry = pNewAry; - mnPoints = nNewSize; - } -} - -// ----------------------------------------------------------------------- - void ImplPolygon::ImplCreateFlagArray() { if( !mpFlagAry ) @@ -1225,84 +1190,6 @@ void Polygon::Rotate( const Point& rCenter, double fSin, double fCos ) // ----------------------------------------------------------------------- -void Polygon::SlantX( long nYRef, double fSin, double fCos ) -{ - DBG_CHKTHIS( Polygon, NULL ); - ImplMakeUnique(); - - for( sal_uInt16 i = 0, nCount = mpImplPolygon->mnPoints; i < nCount; i++ ) - { - Point& rPnt = mpImplPolygon->mpPointAry[ i ]; - const long nDy = rPnt.Y() - nYRef; - - rPnt.X() += (long)( fSin * nDy ); - rPnt.Y() = nYRef + (long)( fCos * nDy ); - } -} - -// ----------------------------------------------------------------------- - -void Polygon::SlantY( long nXRef, double fSin, double fCos ) -{ - DBG_CHKTHIS( Polygon, NULL ); - ImplMakeUnique(); - - for( sal_uInt16 i = 0, nCount = mpImplPolygon->mnPoints; i < nCount; i++ ) - { - Point& rPnt = mpImplPolygon->mpPointAry[ i ]; - const long nDx = rPnt.X() - nXRef; - - rPnt.X() = nXRef + (long)( fCos * nDx ); - rPnt.Y() -= (long)( fSin * nDx ); - } -} - -// ----------------------------------------------------------------------- - -void Polygon::Distort( const Rectangle& rRefRect, const Polygon& rDistortedRect ) -{ - DBG_CHKTHIS( Polygon, NULL ); - ImplMakeUnique(); - - long Xr, Wr, X1, X2, X3, X4; - long Yr, Hr, Y1, Y2, Y3, Y4; - double fTx, fTy, fUx, fUy; - - Xr = rRefRect.Left(); - Yr = rRefRect.Top(); - Wr = rRefRect.GetWidth(); - Hr = rRefRect.GetHeight(); - - if( Wr && Hr ) - { - DBG_ASSERT( rDistortedRect.mpImplPolygon->mnPoints >= 4, "Distort rect too small!" ); - - X1 = rDistortedRect[0].X(); - Y1 = rDistortedRect[0].Y(); - X2 = rDistortedRect[1].X(); - Y2 = rDistortedRect[1].Y(); - X3 = rDistortedRect[3].X(); - Y3 = rDistortedRect[3].Y(); - X4 = rDistortedRect[2].X(); - Y4 = rDistortedRect[2].Y(); - - for( sal_uInt16 i = 0, nCount = mpImplPolygon->mnPoints; i < nCount; i++ ) - { - Point& rPnt = mpImplPolygon->mpPointAry[ i ]; - - fTx = (double)( rPnt.X() - Xr) / Wr; - fTy = (double)( rPnt.Y() - Yr) / Hr; - fUx = 1.0 - fTx; - fUy = 1.0 - fTy; - - rPnt.X() = (long) ( fUy * (fUx * X1 + fTx * X2) + fTy * (fUx * X3 + fTx * X4) ); - rPnt.Y() = (long) ( fUx * (fUy * Y1 + fTy * Y3) + fTx * (fUy * Y2 + fTy * Y4) ); - } - } -} - -// ----------------------------------------------------------------------- - class ImplPointFilter { public: |