summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-20 18:54:06 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-20 18:54:06 +0100
commit7d9d050495054307f3eaea044e39cd16eeaee458 (patch)
treee92f80f058f105365bce01f9b646cd61c22b383f /xmlsecurity
parent3f83b3b94363f79aad7795ca604e5d2bec4e32a5 (diff)
Remove dead code
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx18
1 files changed, 0 insertions, 18 deletions
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() ) ;
}