summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-29 11:41:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-29 11:43:40 +0000
commit9bfd742d8cdc4aab3dd817f13ab4cfa5cc60ae12 (patch)
tree51815ec709869dd297c10b8359b3bc4736204a98 /tools
parentcfaba15c589f882cc0bcce5cd07bdf3d30f547f6 (diff)
loplugin:unusedmethods
Change-Id: Ib008613fb06c82791c63d5b074a3e2ff1c3607a0 Reviewed-on: https://gerrit.libreoffice.org/35834 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/poly.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index eba86e6f40b6..0faae1a39b27 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -1391,31 +1391,6 @@ Rectangle Polygon::GetBoundRect() const
return Rectangle( nXMin, nYMin, nXMax, nYMax );
}
-double Polygon::GetSignedArea() const
-{
- DBG_ASSERT( !mpImplPolygon->mpFlagAry, "GetArea could fail with beziers!" );
-
- double fArea = 0.0;
-
- if( mpImplPolygon->mnPoints > 2 )
- {
- const sal_uInt16 nCount1 = mpImplPolygon->mnPoints - 1;
-
- for( sal_uInt16 i = 0; i < nCount1; )
- {
- const Point& rPt = mpImplPolygon->mpPointAry[ i ];
- const Point& rPt1 = mpImplPolygon->mpPointAry[ ++i ];
- fArea += ( rPt.X() - rPt1.X() ) * ( rPt.Y() + rPt1.Y() );
- }
-
- const Point& rPt = mpImplPolygon->mpPointAry[ nCount1 ];
- const Point& rPt0 = mpImplPolygon->mpPointAry[ 0 ];
- fArea += ( rPt.X() - rPt0.X() ) * ( rPt.Y() + rPt0.Y() );
- }
-
- return fArea;
-}
-
bool Polygon::IsInside( const Point& rPoint ) const
{
DBG_ASSERT( !mpImplPolygon->mpFlagAry, "IsInside could fail with beziers!" );