From 611f536e0ee527115203e3bdef687b05dd6c8e84 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 13 Apr 2017 09:18:50 +0200 Subject: xmlsecurity: remove unused ImplXMLSignatureListener::signatureVerified() ImplXMLSignatureListener doesn't have to implement XSignatureVerifyResultListener, signatureVerified() is only called at SignatureVerifierImpl::notifyResultListener(), on an object set by SignatureVerifierImpl::addSignatureVerifyResultListener(). But addSignatureVerifyResultListener() is only called from XSecController::prepareSignatureToRead() where the argument is of type XSecController. Change-Id: I6741e6a4ce5cf800b09189cd8b7814cd72d602ab Reviewed-on: https://gerrit.libreoffice.org/36504 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- xmlsecurity/source/helper/xmlsignaturehelper2.cxx | 6 ------ xmlsecurity/source/helper/xmlsignaturehelper2.hxx | 6 ------ 2 files changed, 12 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx index f8e2dfc73242..aa8ac7b4515d 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx @@ -47,12 +47,6 @@ void ImplXMLSignatureListener::setNextHandler( m_xNextHandler = xNextHandler; } -void SAL_CALL ImplXMLSignatureListener::signatureVerified( sal_Int32 securityId, css::xml::crypto::SecurityOperationStatus nResult ) -{ - XMLSignatureVerifyResult aResult( securityId, nResult ); - m_rXMLSignatureHelper.SignatureVerifyResultListener(aResult); -} - // XDocumentHandler void SAL_CALL ImplXMLSignatureListener::startDocument( ) { diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.hxx b/xmlsecurity/source/helper/xmlsignaturehelper2.hxx index 0a560cab7e97..d460c292c137 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper2.hxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper2.hxx @@ -26,8 +26,6 @@ #include #include -#include -#include namespace com { namespace sun { @@ -46,7 +44,6 @@ namespace embed { class ImplXMLSignatureListener : public cppu::WeakImplHelper < - css::xml::crypto::sax::XSignatureVerifyResultListener, css::xml::sax::XDocumentHandler > { @@ -62,9 +59,6 @@ public: void setNextHandler(const css::uno::Reference< css::xml::sax::XDocumentHandler >& xNextHandler); - // css::xml::crypto::sax::XSignatureVerifyResultListener - virtual void SAL_CALL signatureVerified( sal_Int32 securityId, css::xml::crypto::SecurityOperationStatus verifyResult ) override; - // css::xml::sax::XDocumentHandler virtual void SAL_CALL startElement( const OUString& aName, const css::uno::Reference< css::xml::sax::XAttributeList >& xAttribs ) override; -- cgit