From 0649622956431e0a1955cb80d1175025401ab5e5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Feb 2017 10:15:34 +0200 Subject: loplugin:unusedmethods Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c Reviewed-on: https://gerrit.libreoffice.org/34508 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- xmloff/source/draw/shapeimport.cxx | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx index ba1d0f6ad9b9..44c648fa641f 100644 --- a/xmloff/source/draw/shapeimport.cxx +++ b/xmloff/source/draw/shapeimport.cxx @@ -941,35 +941,6 @@ void XMLShapeImportHelper::addGluePointMapping( css::uno::Reference< css::drawin mpPageContext->maShapeGluePointsMap[xShape][nSourceId] = nDestinnationId; } -/** find mapping for given DestinationID. This allows to extract the original draw:id imported with a draw:glue-point */ -sal_Int32 XMLShapeImportHelper::findGluePointMapping( - const css::uno::Reference< css::drawing::XShape >& xShape, - sal_Int32 nDestinnationId ) const -{ - if( mpPageContext ) - { - ShapeGluePointsMap::iterator aShapeIter( mpPageContext->maShapeGluePointsMap.find( xShape ) ); - - if( aShapeIter != mpPageContext->maShapeGluePointsMap.end() ) - { - GluePointIdMap::iterator aShapeIdIter = (*aShapeIter).second.begin(); - GluePointIdMap::iterator aShapeIdEnd = (*aShapeIter).second.end(); - - while ( aShapeIdIter != aShapeIdEnd ) - { - if ( (*aShapeIdIter).second == nDestinnationId ) - { - return (*aShapeIdIter).first; - } - - ++aShapeIdIter; - } - } - } - - return -1; -} - /** moves all current DestinationId's by n */ void XMLShapeImportHelper::moveGluePointMapping( const css::uno::Reference< css::drawing::XShape >& xShape, const sal_Int32 n ) { -- cgit