From 7d9d050495054307f3eaea044e39cd16eeaee458 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sun, 20 Feb 2011 18:54:06 +0100 Subject: Remove dead code --- .../source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx index 4d8569525701..eb1dd5615065 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx @@ -33,15 +33,11 @@ #include "com/sun/star/xml/crypto/SecurityOperationStatus.hdl" #include "xmlsignature_mscryptimpl.hxx" - #include "xmldocumentwrapper_xmlsecimpl.hxx" - #include "xmlelementwrapper_xmlsecimpl.hxx" - #include "securityenvironment_mscryptimpl.hxx" #include "xmlstreamio.hxx" #include "errorcallback.hxx" - #include "xmlsec/xmlsec.h" #include "xmlsec/xmldsig.h" #include "xmlsec/crypto.h" @@ -175,7 +171,6 @@ SAL_CALL XMLSignature_MSCryptImpl :: validate( xmlSecKeysMngrPtr pMngr = NULL ; xmlSecDSigCtxPtr pDsigCtx = NULL ; xmlNodePtr pNode = NULL ; - //sal_Bool valid ; if( !aTemplate.is() ) throw RuntimeException() ; @@ -220,15 +215,6 @@ SAL_CALL XMLSignature_MSCryptImpl :: validate( throw RuntimeException() ; } - //added for test: save the result - /* - { - FILE *dstFile = fopen( "c:\\1.txt", "w" ) ; - xmlDocDump( dstFile, pNode->doc) ; - fclose( dstFile ) ; - } - */ - setErrorRecorder( ); pMngr = pSecEnv->createKeysManager() ; //i39448 @@ -241,7 +227,6 @@ SAL_CALL XMLSignature_MSCryptImpl :: validate( if( pDsigCtx == NULL ) { pSecEnv->destroyKeysManager( pMngr ) ; //i39448 - //throw XMLSignatureException() ; clearErrorRecorder(); return aTemplate; } @@ -321,9 +306,6 @@ Reference< XInterface > SAL_CALL XMLSignature_MSCryptImpl :: impl_createInstance } Reference< XSingleServiceFactory > XMLSignature_MSCryptImpl :: impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) { - //Reference< XSingleServiceFactory > xFactory ; - //xFactory = ::cppu::createSingleFactory( aServiceManager , impl_getImplementationName , impl_createInstance , impl_getSupportedServiceNames ) ; - //return xFactory ; return ::cppu::createSingleFactory( aServiceManager , impl_getImplementationName() , impl_createInstance , impl_getSupportedServiceNames() ) ; } -- cgit