Bin unused XSecuritySAXEventKeeper::cloneElementCollector
Change-Id: Icc0ead769fa0a052f7d4dfbc825c96dbb513b33f
This commit is contained in:
@@ -52,19 +52,6 @@ interface XSecuritySAXEventKeeper : XSAXEventKeeper
|
||||
[in] ElementMarkPriority priority,
|
||||
[in] boolean modifyElement);
|
||||
|
||||
/**
|
||||
* Clones an element collector.
|
||||
*
|
||||
* @param referenceId the keeper id of the element collector to
|
||||
* be cloned
|
||||
* @param priority the priority of new element collector. See
|
||||
* ConstOfPriority
|
||||
* @return the keeper id of the new element collector
|
||||
*/
|
||||
long cloneElementCollector(
|
||||
[in] long referenceId,
|
||||
[in] ElementMarkPriority priority);
|
||||
|
||||
/**
|
||||
* Sets security id for an element mark.
|
||||
*
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user