diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-09 09:22:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-10 06:28:22 +0000 |
commit | b0229855057ed4d73e73ecd8c501a4564f2237ce (patch) | |
tree | 05a3e4eea3ea9584699063ed9b726d466f3a8839 /xmlsecurity/inc | |
parent | bce35b8e13b0d82ba54bf3d380f448dad0ee13bb (diff) |
loplugin:unusedfields
Change-Id: I9611511cb3480734dea3c3cbaf0d659071366ad1
Reviewed-on: https://gerrit.libreoffice.org/32873
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r-- | xmlsecurity/inc/framework/signaturecreatorimpl.hxx | 2 | ||||
-rw-r--r-- | xmlsecurity/inc/framework/signatureengine.hxx | 5 | ||||
-rw-r--r-- | xmlsecurity/inc/framework/signatureverifierimpl.hxx | 3 | ||||
-rw-r--r-- | xmlsecurity/inc/pdfsignaturehelper.hxx | 3 | ||||
-rw-r--r-- | xmlsecurity/inc/xsecctl.hxx | 6 |
5 files changed, 4 insertions, 15 deletions
diff --git a/xmlsecurity/inc/framework/signaturecreatorimpl.hxx b/xmlsecurity/inc/framework/signaturecreatorimpl.hxx index ce5e01f08eb7..cdf0da4e1067 100644 --- a/xmlsecurity/inc/framework/signaturecreatorimpl.hxx +++ b/xmlsecurity/inc/framework/signaturecreatorimpl.hxx @@ -67,7 +67,7 @@ private: throw (css::uno::Exception, css::uno::RuntimeException) override; public: - explicit SignatureCreatorImpl( const css::uno::Reference< css::uno::XComponentContext > & xContext ); + explicit SignatureCreatorImpl(); virtual ~SignatureCreatorImpl() override; /* XBlockerMonitor */ diff --git a/xmlsecurity/inc/framework/signatureengine.hxx b/xmlsecurity/inc/framework/signatureengine.hxx index ee6c79abea98..3793016cec61 100644 --- a/xmlsecurity/inc/framework/signatureengine.hxx +++ b/xmlsecurity/inc/framework/signatureengine.hxx @@ -54,9 +54,6 @@ class XSECFW_DLLPUBLIC SignatureEngine : public cppu::ImplInheritanceHelper * Maintains common members and methods related with signature operation. ******************************************************************************/ { -private: - css::uno::Reference< css::uno::XComponentContext > m_xContext; - protected: /* @@ -86,7 +83,7 @@ protected: std::vector< css::uno::Reference< css::io::XInputStream > > m_vXInputStreams; protected: - explicit SignatureEngine( const css::uno::Reference< css::uno::XComponentContext > & xContext); + explicit SignatureEngine(); virtual ~SignatureEngine() override {}; virtual void tryToPerform( ) diff --git a/xmlsecurity/inc/framework/signatureverifierimpl.hxx b/xmlsecurity/inc/framework/signatureverifierimpl.hxx index f31f7acda35e..70bbb419de07 100644 --- a/xmlsecurity/inc/framework/signatureverifierimpl.hxx +++ b/xmlsecurity/inc/framework/signatureverifierimpl.hxx @@ -61,8 +61,7 @@ private: throw (css::uno::Exception, css::uno::RuntimeException) override; public: - explicit SignatureVerifierImpl( const css::uno::Reference< - css::uno::XComponentContext >& rxContext); + explicit SignatureVerifierImpl(); virtual ~SignatureVerifierImpl() override; /* XSignatureVerifyResultBroadcaster */ diff --git a/xmlsecurity/inc/pdfsignaturehelper.hxx b/xmlsecurity/inc/pdfsignaturehelper.hxx index 7efdbfba421f..463961a99fdd 100644 --- a/xmlsecurity/inc/pdfsignaturehelper.hxx +++ b/xmlsecurity/inc/pdfsignaturehelper.hxx @@ -24,14 +24,13 @@ /// Handles signatures of a PDF file. class XMLSECURITY_DLLPUBLIC PDFSignatureHelper { - css::uno::Reference<css::uno::XComponentContext> m_xComponentContext; SignatureInformations m_aSignatureInfos; css::uno::Reference<css::security::XCertificate> m_xCertificate; OUString m_aDescription; public: - PDFSignatureHelper(const css::uno::Reference<css::uno::XComponentContext>& xComponentContext); + PDFSignatureHelper(); bool ReadAndVerifySignature(const css::uno::Reference<css::io::XInputStream>& xInputStream); css::uno::Sequence<css::security::DocumentSignatureInformation> GetDocumentSignatureInformations(const css::uno::Reference<css::xml::crypto::XSecurityEnvironment>& xSecEnv) const; SignatureInformations GetSignatureInformations() const; diff --git a/xmlsecurity/inc/xsecctl.hxx b/xmlsecurity/inc/xsecctl.hxx index 8e1fc1b0e066..686d23dca4c4 100644 --- a/xmlsecurity/inc/xsecctl.hxx +++ b/xmlsecurity/inc/xsecctl.hxx @@ -255,12 +255,6 @@ private: */ bool m_bVerifyCurrentSignature; - /* - * the type of signature to generate (from the css::xml::crypto::DigestID alternatives) when there is a choice, - * in practice currently SHA1 or SHA256 for ODF. - */ - sal_Int32 m_nDigestID; - public: /* * An xUriBinding is provided to map Uris to XInputStream interfaces. |