diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-11-05 10:32:19 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-11-05 20:32:47 +0100 |
commit | e35ef2502974c74f85c89a9dbc93b1137defcf48 (patch) | |
tree | d08e67a0a61013e270a0ba499e20cadc4436bfa4 /include | |
parent | e8d81c0240a66821ebd9ead3718f32d97ecc416d (diff) |
class PolyOptimizeData is never instantiated
Change-Id: I136b3b1d572e4401d89d50f543150d71dbe44d16
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/poly.hxx | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx index 99481a7ec8bf..33cfb5da9528 100644 --- a/include/tools/poly.hxx +++ b/include/tools/poly.hxx @@ -57,23 +57,6 @@ enum PolyFlags POLY_SYMMTR }; -class SAL_WARN_UNUSED PolyOptimizeData -{ -private: - - enum DataType { DATA_NONE = 0, DATA_ABSOLUT = 1, DATA_PERCENT = 2 }; - DataType eType; - union { sal_uIntPtr mnAbsolut; sal_uInt16 mnPercent; }; - -public: - PolyOptimizeData() : eType( DATA_NONE ) {} - PolyOptimizeData( sal_uIntPtr nAbsolut ) : eType( DATA_ABSOLUT ), mnAbsolut( nAbsolut ) {} - PolyOptimizeData( sal_uInt16 nPercent ) : eType( DATA_PERCENT ), mnPercent( nPercent ) {} - - sal_uIntPtr GetAbsValue() const { (void) eType; DBG_ASSERT( eType == DATA_ABSOLUT, "Wrong data type" ); return mnAbsolut; } - sal_uInt16 GetPercentValue() const { (void) eType; DBG_ASSERT( eType == DATA_PERCENT, "Wrong data type" ); return mnPercent; } -}; - class SvStream; class ImplPolygon; class ImplPolyPolygon; @@ -141,7 +124,7 @@ public: bool IsRightOrientated() const; double CalcDistance( sal_uInt16 nPt1, sal_uInt16 nPt2 ); void Clip( const Rectangle& rRect, bool bPolygon = true ); - void Optimize( PolyOptimizeFlags nOptimizeFlags, const PolyOptimizeData* pData = NULL ); + void Optimize( PolyOptimizeFlags nOptimizeFlags ); /** Adaptive subdivision of polygons with curves @@ -227,7 +210,7 @@ public: sal_uInt16 Count() const; Rectangle GetBoundRect() const; void Clip( const Rectangle& rRect ); - void Optimize( PolyOptimizeFlags nOptimizeFlags, const PolyOptimizeData* pData = NULL ); + void Optimize( PolyOptimizeFlags nOptimizeFlags ); /** Adaptive subdivision of polygons with curves |