summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-04-13 09:18:50 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-04-13 10:12:47 +0200
commit611f536e0ee527115203e3bdef687b05dd6c8e84 (patch)
treedd19b30db88ef56dbfde75921e7935141d7cd28c
parent0b42e895efd1d456b0deee4949644f9d20e622ab (diff)
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 <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper2.cxx6
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper2.hxx6
2 files changed, 0 insertions, 12 deletions
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 <cppuhelper/implbase.hxx>
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-#include <com/sun/star/xml/crypto/sax/XSignatureCreationResultListener.hpp>
-#include <com/sun/star/xml/crypto/sax/XSignatureVerifyResultListener.hpp>
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;