summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-11-03 10:46:24 +0200
committerTor Lillqvist <tml@collabora.com>2016-11-03 11:10:59 +0200
commit38dc4ea8992f74e15951cc0bc7e378fe1857c604 (patch)
tree92af5990e6059f6c8e601f63fea87bf2d6c5004d /xmlsecurity
parent880bcf9ed8c54f53d9fb631b9e064a468a9d02da (diff)
Bin unused XSecuritySAXEventKeeper::cloneElementCollector
Change-Id: Icc0ead769fa0a052f7d4dfbc825c96dbb513b33f
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/framework/saxeventkeeperimpl.cxx34
-rw-r--r--xmlsecurity/source/framework/saxeventkeeperimpl.hxx4
2 files changed, 0 insertions, 38 deletions
diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
index 2c616c98cd96..ebe6823c30f1 100644
--- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
+++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
@@ -983,40 +983,6 @@ sal_Int32 SAL_CALL SAXEventKeeperImpl::addSecurityElementCollector(
nullptr);
}
-sal_Int32 SAL_CALL SAXEventKeeperImpl::cloneElementCollector(
- sal_Int32 referenceId,
- cssxc::sax::ElementMarkPriority priority )
- throw (cssu::RuntimeException, std::exception)
-{
- sal_Int32 nId = -1;
-
- ElementCollector* pElementCollector = static_cast<ElementCollector*>(findElementMarkBuffer(referenceId));
- if (pElementCollector != nullptr)
- {
- nId = m_nNextElementMarkId;
- m_nNextElementMarkId ++;
-
- ElementCollector* pClonedOne
- = pElementCollector->clone(nId, priority);
-
- /*
- * add this EC into the security data buffer array.
- */
- m_vElementMarkBuffers.push_back(pClonedOne);
-
- /*
- * If the reference EC is still in initial EC array, add
- * this cloned one into the initial EC array too.
- */
- if (pElementCollector->getBufferNode() == nullptr)
- {
- m_vNewElementCollectors.push_back(pClonedOne);
- }
- }
-
- return nId;
-}
-
void SAL_CALL SAXEventKeeperImpl::setSecurityId( sal_Int32 id, sal_Int32 securityId )
throw (cssu::RuntimeException, std::exception)
{
diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.hxx b/xmlsecurity/source/framework/saxeventkeeperimpl.hxx
index f70e5ca7a3eb..214575d2757e 100644
--- a/xmlsecurity/source/framework/saxeventkeeperimpl.hxx
+++ b/xmlsecurity/source/framework/saxeventkeeperimpl.hxx
@@ -247,10 +247,6 @@ public:
css::xml::crypto::sax::ElementMarkPriority priority,
sal_Bool modifyElement )
throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL cloneElementCollector(
- sal_Int32 referenceId,
- css::xml::crypto::sax::ElementMarkPriority priority )
- throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setSecurityId( sal_Int32 id, sal_Int32 securityId )
throw (css::uno::RuntimeException, std::exception) override;