summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev/_xpoly.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-08 11:48:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-08 13:04:46 +0100
commit3e6613964f10ff10b71188293a2e4d4d1b29944c (patch)
treecfd265d1b3cff3a95c0da251a6c12951bf261913 /svx/source/xoutdev/_xpoly.cxx
parent135a208ba217d9b8ff13f47eab552c8ddfaec01a (diff)
callcatcher: remove unused methods
Diffstat (limited to 'svx/source/xoutdev/_xpoly.cxx')
-rw-r--r--svx/source/xoutdev/_xpoly.cxx49
1 files changed, 0 insertions, 49 deletions
diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx
index 0a40750abf3c..0c9d7a229535 100644
--- a/svx/source/xoutdev/_xpoly.cxx
+++ b/svx/source/xoutdev/_xpoly.cxx
@@ -1004,55 +1004,6 @@ void XPolygon::PointsToBezier(sal_uInt16 nFirst)
/*************************************************************************
|*
-|* XPolygon::Rotate()
-|*
-|* Alle Punkte um den Punkt rCenter drehen, Sinus und Cosinus
-|* muessen uebergeben werden
-|*
-*************************************************************************/
-
-void XPolygon::Rotate(const Point& rCenter, double fSin, double fCos)
-{
- pImpXPolygon->CheckPointDelete();
- CheckReference();
-
- long nX;
- long nY;
- long nNewX;
- long nNewY;
- long nCenterX = rCenter.X();
- long nCenterY = rCenter.Y();
-
- sal_uInt16 nPntCnt = pImpXPolygon->nPoints;
-
- for (sal_uInt16 i = 0; i < nPntCnt; i++)
- {
- Point *pPt = &(pImpXPolygon->pPointAry[i]);
- nX = pPt->X()-nCenterX;
- nY = pPt->Y()-nCenterY;
- nNewX = (long)floor(fCos * nX + fSin * nY + 0.5);
- nNewY = -(long)floor(fSin * nX - fCos * nY + 0.5);
- pPt->X() = nNewX + nCenterX;
- pPt->Y() = nNewY + nCenterY;
-
- /* und so stand das in einem anderen File auf T:
- dass ich am 29-11-1995 gegettet habe. Joe M.
- sal_uInt16 nPntCnt = pImpXPolygon->nPoints;
-
- for (sal_uInt16 i = 0; i < nPntCnt; i++)
- {
- Point P = pImpXPolygon->pPointAry[i] - rCenter;
- long X = P.X();
- long Y = P.Y();
- P.X() = (long)floor(fCos * X + fSin * Y + 0.5);
- P.Y() = -(long)floor(fSin * X - fCos * Y + 0.5);
- pImpXPolygon->pPointAry[i] = P + rCenter;
- */
- }
-}
-
-/*************************************************************************
-|*
|* XPolygon::Scale()
|*
|* XPolygon in X- und/oder Y-Richtung skalieren