diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-08 20:04:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-09 12:08:15 +0200 |
commit | 485300f9aef53f63e24339422b1dd2bfa12d543e (patch) | |
tree | 3e3f5aca8dbbade3ed18a68da0b57ace4cc2bee5 /vcl/source/gdi | |
parent | 0e1a0ecffa055062a21815ab13eb6e4f8c769b8f (diff) |
loplugin:unusedmethods
Change-Id: Ib89ab59f7ad7e90b2a44ddd122176cde904fba4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135520
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/vectorgraphicdata.cxx | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/vcl/source/gdi/vectorgraphicdata.cxx b/vcl/source/gdi/vectorgraphicdata.cxx index 100776286e2d..9ad27f9cacd8 100644 --- a/vcl/source/gdi/vectorgraphicdata.cxx +++ b/vcl/source/gdi/vectorgraphicdata.cxx @@ -140,16 +140,6 @@ bool VectorGraphicData::operator==(const VectorGraphicData& rCandidate) const return false; } -void VectorGraphicData::setWmfExternalHeader(const WmfExternal& aExtHeader) -{ - if (!mpExternalHeader) - { - mpExternalHeader.reset( new WmfExternal ); - } - - *mpExternalHeader = aExtHeader; -} - void VectorGraphicData::ensurePdfReplacement() { assert(getType() == VectorGraphicDataType::Pdf); @@ -226,15 +216,10 @@ void VectorGraphicData::ensureSequenceAndRange() std::copy(maDataContainer.cbegin(), maDataContainer.cend(), aDataSequence.getArray()); const uno::Reference<io::XInputStream> xInputStream(new comphelper::SequenceInputStream(aDataSequence)); - uno::Sequence< ::beans::PropertyValue > aPropertySequence; - - if (mpExternalHeader) - { - aPropertySequence = mpExternalHeader->getSequence(); - } - if (xInputStream.is()) { + uno::Sequence< ::beans::PropertyValue > aPropertySequence; + // Pass the size hint of the graphic to the EMF parser. geometry::RealPoint2D aSizeHint; aSizeHint.X = maSizeHint.getX(); @@ -243,9 +228,7 @@ void VectorGraphicData::ensureSequenceAndRange() if (!mbEnableEMFPlus) { - auto aVector = comphelper::sequenceToContainer<std::vector<beans::PropertyValue>>(aPropertySequence); - aVector.push_back(comphelper::makePropertyValue("EMFPlusEnable", uno::Any(false))); - aPropertySequence = comphelper::containerToSequence(aVector); + aPropertySequence = { comphelper::makePropertyValue("EMFPlusEnable", uno::Any(false)) }; } maSequence = comphelper::sequenceToContainer<std::deque<css::uno::Reference< css::graphic::XPrimitive2D >>>(xEmfParser->getDecomposition(xInputStream, OUString(), aPropertySequence)); |