summaryrefslogtreecommitdiffstats
path: root/svx/source/customshapes
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-04-27 00:52:19 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-04-27 00:53:17 +0900
commita27bad586b418e566ba88cd7f99ccb45dbc1282f (patch)
tree29de76bcfb5279ff025f33d9eeab6c5ac50f4d46 /svx/source/customshapes
parentremoved unused header (diff)
downloadcore-a27bad586b418e566ba88cd7f99ccb45dbc1282f.tar.gz
core-a27bad586b418e566ba88cd7f99ccb45dbc1282f.zip
removed dead code
Diffstat (limited to 'svx/source/customshapes')
-rw-r--r--svx/source/customshapes/EnhancedCustomShape2d.cxx14
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeEngine.cxx15
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeGeometry.cxx36
3 files changed, 0 insertions, 65 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index 39a7709e7827..08762bb1418f 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -508,20 +508,6 @@ sal_Bool EnhancedCustomShape2d::ConvertSequenceToEnhancedCustomShape2dHandle(
if ( rPropVal.Value >>= rDestinationHandle.aPolar )
rDestinationHandle.nFlags |= HANDLE_FLAGS_POLAR;
}
-/* seems not to be used.
- else if ( rPropVal.Name.equals( sMap ) )
- {
- com::sun::star::drawing::EnhancedCustomShapeParameterPair aMap;
- if ( rPropVal.Value >>= aMap )
- {
- if ( GetValueForEnhancedCustomShapeHandleParameter( nXMap, aMap.First ) )
- rDestinationHandle.Flags |= 0x800;
- if ( GetValueForEnhancedCustomShapeHandleParameter( nYMap, aMap.Second ) )
- rDestinationHandle.Flags |= 0x1000;
- rDestinationHandle.Flags |= 0x10;
- }
- }
-*/
else if ( rPropVal.Name.equals( sRefX ) )
{
if ( rPropVal.Value >>= rDestinationHandle.nRefX )
diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
index cfb8c41678e8..5be4546d4fea 100644
--- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
@@ -240,21 +240,6 @@ void SetTemporary( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::
SvxShape* pShape = SvxShape::getImplementation( xShape );
if ( pShape )
pShape->TakeSdrObjectOwnership();
-/*
- ::com::sun::star::uno::Reference<
- ::com::sun::star::drawing::XShapes > xShapes( xShape, ::com::sun::star::uno::UNO_QUERY );
- if ( xShapes.is() )
- {
- sal_Int32 i;
- for ( i = 0; i < xShapes->getCount(); i++ )
- {
- ::com::sun::star::uno::Any aAny( xShapes->getByIndex( i ) );
- ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape;
- if ( aAny >>= xShape )
- SetTemporary( xShape );
- }
- }
-*/
}
}
diff --git a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
index b0ede74ef749..4bc2cd389b53 100644
--- a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
@@ -33,42 +33,6 @@
static const sal_Int32 MIN_INT32 = std::numeric_limits<sal_Int32>::min();
-/*
-static const SvxMSDffVertPair Vert[] =
-{
- { 0, 0, }
-};
-static const sal_uInt16 Segm[] =
-{
- 0x4000,
- 0x8000
-};
-static const SvxMSDffCalculationData Calc[] =
-{
- { 0x0000, 0, 0, 0 }
-};
-static const sal_Int32 Default[] =
-{
- 0
-};
-static const SvxMSDffTextRect TextRect[] =
-{
- { { 0, 0 }, { 0, 0 } }
-};
-static const mso_CustomShape mso =
-{
- (SvxMSDffVertPair*)mso_sptVert, SAL_N_ELEMENTS( mso_sptVert ),
- (sal_uInt16*)mso_sptSegm, sizeof( mso_sptSegm ) >> 1,
- (SvxMSDffCalculationData*)mso_sptCalc, SAL_N_ELEMENTS( mso_sptCalc ),
- (sal_Int32*)mso_sptDefault,
- (SvxMSDffTextRectangles*)mso_sptTextRect, SAL_N_ELEMENTS( mso_sptTextRect ),
- 21600, 21600,
- MIN_INT32, MIN_INT32,
- (SvxMSDffVertPair*)mso_sptVert, SAL_N_ELEMENTS( mso_sptVert ),
- (SvxMSDffHandles*)mso_sptHandles, SAL_N_ELEMENTS( mso_sptHandles )
-};
-*/
-
static const sal_Int32 mso_sptDefault0[] =
{
1, 0