diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 10:15:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 10:07:37 +0000 |
commit | 0649622956431e0a1955cb80d1175025401ab5e5 (patch) | |
tree | cdaa1ff406d232399d53594ad1a32691402ab665 /xmloff | |
parent | ede35e5c693a287f31e3c02d8afd33580e827380 (diff) |
loplugin:unusedmethods
Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c
Reviewed-on: https://gerrit.libreoffice.org/34508
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/shapeimport.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
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 ) { |