From 0d1253c2328106a443d16b6c8e96347de33e2ace Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 24 Jan 2019 09:08:34 +0200 Subject: new loplugin writeonlyvars largely based on the relevant portion of the unusedfields loplugin, but adapted for local vars Change-Id: Ic522a941573940e8f75c88f90ba5f37508ca49b1 Reviewed-on: https://gerrit.libreoffice.org/66835 Tested-by: Jenkins Reviewed-by: Noel Grandin --- oox/source/export/shapes.cxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'oox') diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index e16944af5b06..856aef4b3f9e 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -675,9 +675,7 @@ static void lcl_AnalyzeHandles( const uno::Sequence & rHa sal_uInt16 nHandles = rHandles.getLength(); for ( k = 0; k < nHandles ; k++ ) { - const OUString sSwitched( "Switched" ); const OUString sPosition( "Position" ); - bool bSwitched = false; bool bPosition = false; EnhancedCustomShapeParameterPair aPosition; EnhancedCustomShapeParameterPair aPolar; @@ -689,10 +687,6 @@ static void lcl_AnalyzeHandles( const uno::Sequence & rHa if ( rPropVal.Value >>= aPosition ) bPosition = true; } - else if ( rPropVal.Name == sSwitched ) - { - rPropVal.Value >>= bSwitched ; - } } if ( bPosition ) { -- cgit