summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-13 13:13:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-14 06:00:02 +0000
commit45090bee25d624770f34bf827337ade21b8671bb (patch)
tree124298b266d52e551205ee625b181a04fd1415b2 /svx
parent9778a2c9d04abf4f3017ac6730fdefa7fb7fd81b (diff)
remove unused Handles enumerator from DefaultType enum
Change-Id: Iabda70ec3bc3204d5d383bcb93e174d90e405620 Reviewed-on: https://gerrit.libreoffice.org/34208 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdoashp.cxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index 5f053caad956..71253ac647e1 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -1305,35 +1305,6 @@ bool SdrObjCustomShape::IsDefaultGeometry( const DefaultType eDefaultType ) cons
bIsDefaultGeometry = true;
}
break;
-
- case DefaultType::Handles :
- {
- const OUString sHandles( "Handles" );
- pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sHandles );
- if ( pAny && pDefCustomShape && pDefCustomShape->nHandles && pDefCustomShape->pHandles )
- {
- css::uno::Sequence< css::beans::PropertyValues > seqHandles1, seqHandles2;
- if ( *pAny >>= seqHandles1 )
- {
- sal_Int32 i, nCount = pDefCustomShape->nHandles;
- const SvxMSDffHandle* pData = pDefCustomShape->pHandles;
- seqHandles2.realloc( nCount );
- for ( i = 0; i < nCount; i++, pData++ )
- {
- sal_Int32 nPropertiesNeeded;
- css::beans::PropertyValues& rPropValues = seqHandles2[ i ];
- nPropertiesNeeded = GetNumberOfProperties( pData );
- rPropValues.realloc( nPropertiesNeeded );
- lcl_ShapePropertiesFromDFF( pData, rPropValues );
- }
- if ( seqHandles1 == seqHandles2 )
- bIsDefaultGeometry = true;
- }
- }
- else if ( pDefCustomShape && ( ( pDefCustomShape->nHandles == 0 ) || ( pDefCustomShape->pHandles == nullptr ) ) )
- bIsDefaultGeometry = true;
- }
- break;
}
return bIsDefaultGeometry;
}