summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 11:03:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 12:03:50 +0200
commit2fffaf6f05d829e345ad8b391646a6e8df9a9a26 (patch)
treeec1b7343262433ee2ea9ab6e5197b6fd2327b685 /xmlsecurity
parentf74da1315a5b2ec232a66944e41ff90231b383be (diff)
loplugin:unusedmethods
Change-Id: Ia874baf21257e5fe41e104211068a2bcc50446eb Reviewed-on: https://gerrit.libreoffice.org/40391 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/inc/xmlsignaturehelper.hxx27
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper.cxx14
2 files changed, 0 insertions, 41 deletions
diff --git a/xmlsecurity/inc/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsignaturehelper.hxx
index d527942f50f2..93385202e171 100644
--- a/xmlsecurity/inc/xmlsignaturehelper.hxx
+++ b/xmlsecurity/inc/xmlsignaturehelper.hxx
@@ -49,27 +49,6 @@ namespace embed {
class XStorage; }
}}}
-struct XMLSignatureCreationResult
-{
- css::xml::crypto::SecurityOperationStatus nSignatureCreationResult;
-
- XMLSignatureCreationResult( css::xml::crypto::SecurityOperationStatus nResult )
- {
- nSignatureCreationResult = nResult;
- }
-};
-
-struct XMLSignatureVerifyResult
-{
- css::xml::crypto::SecurityOperationStatus nSignatureVerifyResult;
-
- XMLSignatureVerifyResult( css::xml::crypto::SecurityOperationStatus nResult )
- {
- nSignatureVerifyResult = nResult;
- }
-};
-
-
/**********************************************************
XMLSignatureHelper
@@ -89,10 +68,6 @@ private:
css::uno::Reference< css::uno::XComponentContext > mxCtx;
css::uno::Reference< css::xml::crypto::XUriBinding > mxUriBinding;
- std::vector<XMLSignatureCreationResult>
- maCreationResults;
- std::vector<XMLSignatureVerifyResult>
- maVerifyResults;
rtl::Reference<XSecController> mpXSecController;
bool mbError;
bool mbODFPre1_2;
@@ -105,8 +80,6 @@ public:
XMLSignatureHelper(const css::uno::Reference< css::uno::XComponentContext >& mrCtx );
~XMLSignatureHelper();
- void SignatureCreationResultListener(XMLSignatureCreationResult& rResult);
- void SignatureVerifyResultListener(XMLSignatureVerifyResult& rResult);
void StartVerifySignatureElement();
// Set the storage which should be used by the default UriBinding
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index c7841a5d5614..f4f61e0fc945 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -292,20 +292,6 @@ SignatureInformations XMLSignatureHelper::GetSignatureInformations() const
return mpXSecController->getSignatureInformations();
}
-void XMLSignatureHelper::SignatureCreationResultListener(XMLSignatureCreationResult& rResult)
-{
- maCreationResults.insert( maCreationResults.begin() + maCreationResults.size(), rResult );
- if ( rResult.nSignatureCreationResult != css::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED )
- mbError = true;
-}
-
-void XMLSignatureHelper::SignatureVerifyResultListener(XMLSignatureVerifyResult& rResult)
-{
- maVerifyResults.insert( maVerifyResults.begin() + maVerifyResults.size(), rResult );
- if ( rResult.nSignatureVerifyResult != css::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED )
- mbError = true;
-}
-
void XMLSignatureHelper::StartVerifySignatureElement()
{
if ( !maStartVerifySignatureHdl.IsSet() || maStartVerifySignatureHdl.Call(nullptr) )