Kaydet (Commit) 1452e565 authored tarafından Jelle van der Waa's avatar Jelle van der Waa Kaydeden (comit) Caolán McNamara

fdo#62475 removed pointless comments

Change-Id: I02b264a9661bcefaea96d6c5743352914154427d
Reviewed-on: https://gerrit.libreoffice.org/5345Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 30518737
...@@ -42,7 +42,6 @@ CertificateContainer::searchMap( const OUString & url, const OUString & certific ...@@ -42,7 +42,6 @@ CertificateContainer::searchMap( const OUString & url, const OUString & certific
return ret; return ret;
} }
// -------------------------------------------------------------------
sal_Bool sal_Bool
CertificateContainer::isTemporaryCertificate ( const OUString & url, const OUString & certificate_name ) CertificateContainer::isTemporaryCertificate ( const OUString & url, const OUString & certificate_name )
...@@ -51,8 +50,6 @@ CertificateContainer::isTemporaryCertificate ( const OUString & url, const OUStr ...@@ -51,8 +50,6 @@ CertificateContainer::isTemporaryCertificate ( const OUString & url, const OUStr
return searchMap( url, certificate_name, certMap); return searchMap( url, certificate_name, certMap);
} }
// -------------------------------------------------------------------
sal_Bool sal_Bool
CertificateContainer::isCertificateTrust ( const OUString & url, const OUString & certificate_name ) CertificateContainer::isCertificateTrust ( const OUString & url, const OUString & certificate_name )
throw(::com::sun::star::uno::RuntimeException) throw(::com::sun::star::uno::RuntimeException)
...@@ -60,7 +57,6 @@ CertificateContainer::isCertificateTrust ( const OUString & url, const OUString ...@@ -60,7 +57,6 @@ CertificateContainer::isCertificateTrust ( const OUString & url, const OUString
return searchMap( url, certificate_name, certTrustMap); return searchMap( url, certificate_name, certTrustMap);
} }
// -------------------------------------------------------------------
sal_Bool sal_Bool
CertificateContainer::addCertificate( const OUString & url, const OUString & certificate_name, ::sal_Bool trust ) CertificateContainer::addCertificate( const OUString & url, const OUString & certificate_name, ::sal_Bool trust )
throw(::com::sun::star::uno::RuntimeException) throw(::com::sun::star::uno::RuntimeException)
...@@ -74,7 +70,6 @@ CertificateContainer::addCertificate( const OUString & url, const OUString & cer ...@@ -74,7 +70,6 @@ CertificateContainer::addCertificate( const OUString & url, const OUString & cer
return true; return true;
} }
//-------------------------------------------------------------------------
::security::CertificateContainerStatus ::security::CertificateContainerStatus
CertificateContainer::hasCertificate( const OUString & url, const OUString & certificate_name ) throw(::com::sun::star::uno::RuntimeException) CertificateContainer::hasCertificate( const OUString & url, const OUString & certificate_name ) throw(::com::sun::star::uno::RuntimeException)
{ {
...@@ -89,7 +84,6 @@ CertificateContainer::hasCertificate( const OUString & url, const OUString & cer ...@@ -89,7 +84,6 @@ CertificateContainer::hasCertificate( const OUString & url, const OUString & cer
return security::CertificateContainerStatus_NOCERT; return security::CertificateContainerStatus_NOCERT;
} }
} }
//-------------------------------------------------------------------------
OUString SAL_CALL OUString SAL_CALL
CertificateContainer::getImplementationName( ) CertificateContainer::getImplementationName( )
...@@ -98,8 +92,6 @@ CertificateContainer::getImplementationName( ) ...@@ -98,8 +92,6 @@ CertificateContainer::getImplementationName( )
return impl_getStaticImplementationName(); return impl_getStaticImplementationName();
} }
//-------------------------------------------------------------------------
sal_Bool SAL_CALL sal_Bool SAL_CALL
CertificateContainer::supportsService( const OUString& ServiceName ) CertificateContainer::supportsService( const OUString& ServiceName )
throw(::com::sun::star::uno::RuntimeException) throw(::com::sun::star::uno::RuntimeException)
...@@ -110,8 +102,6 @@ CertificateContainer::supportsService( const OUString& ServiceName ) ...@@ -110,8 +102,6 @@ CertificateContainer::supportsService( const OUString& ServiceName )
return sal_False; return sal_False;
} }
//-------------------------------------------------------------------------
Sequence< OUString > SAL_CALL Sequence< OUString > SAL_CALL
CertificateContainer::getSupportedServiceNames( ) CertificateContainer::getSupportedServiceNames( )
throw(::com::sun::star::uno::RuntimeException) throw(::com::sun::star::uno::RuntimeException)
...@@ -119,8 +109,6 @@ CertificateContainer::getSupportedServiceNames( ) ...@@ -119,8 +109,6 @@ CertificateContainer::getSupportedServiceNames( )
return impl_getStaticSupportedServiceNames(); return impl_getStaticSupportedServiceNames();
} }
//-------------------------------------------------------------------------
Sequence< OUString > SAL_CALL Sequence< OUString > SAL_CALL
CertificateContainer::impl_getStaticSupportedServiceNames( ) CertificateContainer::impl_getStaticSupportedServiceNames( )
throw(::com::sun::star::uno::RuntimeException) throw(::com::sun::star::uno::RuntimeException)
...@@ -130,8 +118,6 @@ CertificateContainer::impl_getStaticSupportedServiceNames( ) ...@@ -130,8 +118,6 @@ CertificateContainer::impl_getStaticSupportedServiceNames( )
return aRet; return aRet;
} }
//-------------------------------------------------------------------------
OUString SAL_CALL OUString SAL_CALL
CertificateContainer::impl_getStaticImplementationName() CertificateContainer::impl_getStaticImplementationName()
throw(::com::sun::star::uno::RuntimeException) throw(::com::sun::star::uno::RuntimeException)
...@@ -139,8 +125,6 @@ CertificateContainer::impl_getStaticImplementationName() ...@@ -139,8 +125,6 @@ CertificateContainer::impl_getStaticImplementationName()
return OUString("com.sun.star.security.CertificateContainer"); return OUString("com.sun.star.security.CertificateContainer");
} }
//-------------------------------------------------------------------------
Reference< XInterface > SAL_CALL CertificateContainer::impl_createInstance( const Reference< XMultiServiceFactory >& xServiceManager ) Reference< XInterface > SAL_CALL CertificateContainer::impl_createInstance( const Reference< XMultiServiceFactory >& xServiceManager )
throw( RuntimeException ) throw( RuntimeException )
{ {
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <stdio.h> #include <stdio.h>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
...@@ -41,7 +40,6 @@ using namespace ::com::sun::star::registry; ...@@ -41,7 +40,6 @@ using namespace ::com::sun::star::registry;
extern "C" extern "C"
{ {
//==================================================================================================
SAL_DLLPUBLIC_EXPORT void * SAL_CALL xsec_fw_component_getFactory( SAL_DLLPUBLIC_EXPORT void * SAL_CALL xsec_fw_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ ) const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{ {
...@@ -153,5 +151,4 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL xsec_fw_component_getFactory( ...@@ -153,5 +151,4 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL xsec_fw_component_getFactory(
} }
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <xmlsecurity/xmlsignaturehelper.hxx> #include <xmlsecurity/xmlsignaturehelper.hxx>
#include <xmlsignaturehelper2.hxx> #include <xmlsignaturehelper2.hxx>
...@@ -63,9 +62,7 @@ void SAL_CALL ImplXMLSignatureListener::signatureVerified( sal_Int32 securityId, ...@@ -63,9 +62,7 @@ void SAL_CALL ImplXMLSignatureListener::signatureVerified( sal_Int32 securityId,
maVerifyResultListenerListener.Call( &aResult ); maVerifyResultListenerListener.Call( &aResult );
} }
// ---------------------------------------------------------------------------------
// XDocumentHandler // XDocumentHandler
// ---------------------------------------------------------------------------------
void SAL_CALL ImplXMLSignatureListener::startDocument( ) void SAL_CALL ImplXMLSignatureListener::startDocument( )
throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException) throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException)
{ {
...@@ -143,9 +140,7 @@ void SAL_CALL ImplXMLSignatureListener::setDocumentLocator( const com::sun::star ...@@ -143,9 +140,7 @@ void SAL_CALL ImplXMLSignatureListener::setDocumentLocator( const com::sun::star
} }
} }
// ---------------------------------------------------------------------------------
// XUriBinding // XUriBinding
// ---------------------------------------------------------------------------------
UriBindingHelper::UriBindingHelper() UriBindingHelper::UriBindingHelper()
{ {
...@@ -156,7 +151,6 @@ UriBindingHelper::UriBindingHelper( const com::sun::star::uno::Reference < com:: ...@@ -156,7 +151,6 @@ UriBindingHelper::UriBindingHelper( const com::sun::star::uno::Reference < com::
mxStorage = rxStorage; mxStorage = rxStorage;
} }
void SAL_CALL UriBindingHelper::setUriBinding( const OUString& /*uri*/, const uno::Reference< io::XInputStream >&) void SAL_CALL UriBindingHelper::setUriBinding( const OUString& /*uri*/, const uno::Reference< io::XInputStream >&)
throw (uno::Exception, uno::RuntimeException) throw (uno::Exception, uno::RuntimeException)
{ {
...@@ -217,5 +211,4 @@ uno::Reference < io::XInputStream > UriBindingHelper::OpenInputStream( const uno ...@@ -217,5 +211,4 @@ uno::Reference < io::XInputStream > UriBindingHelper::OpenInputStream( const uno
return xInStream; return xInStream;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -36,7 +36,6 @@ namespace embed { ...@@ -36,7 +36,6 @@ namespace embed {
class XStorage; } class XStorage; }
}}} }}}
// MT: Not needed any more, remove later... // MT: Not needed any more, remove later...
class ImplXMLSignatureListener : public cppu::WeakImplHelper3 class ImplXMLSignatureListener : public cppu::WeakImplHelper3
...@@ -95,10 +94,7 @@ public: ...@@ -95,10 +94,7 @@ public:
throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException);
}; };
// ---------------------------------------------------------------------------------
// XUriBinding // XUriBinding
// ---------------------------------------------------------------------------------
class UriBindingHelper : public cppu::WeakImplHelper1 class UriBindingHelper : public cppu::WeakImplHelper1
< <
...@@ -108,7 +104,6 @@ class UriBindingHelper : public cppu::WeakImplHelper1 ...@@ -108,7 +104,6 @@ class UriBindingHelper : public cppu::WeakImplHelper1
private: private:
com::sun::star::uno::Reference < com::sun::star::embed::XStorage > mxStorage; com::sun::star::uno::Reference < com::sun::star::embed::XStorage > mxStorage;
public: public:
UriBindingHelper(); UriBindingHelper();
UriBindingHelper( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rxStorage ); UriBindingHelper( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rxStorage );
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <sal/config.h> #include <sal/config.h>
#include <rtl/uuid.h> #include <rtl/uuid.h>
#include "xmlencryption_mscryptimpl.hxx" #include "xmlencryption_mscryptimpl.hxx"
...@@ -281,7 +280,6 @@ XMLEncryption_MSCryptImpl :: decrypt( ...@@ -281,7 +280,6 @@ XMLEncryption_MSCryptImpl :: decrypt(
return aTemplate; return aTemplate;
} }
aTemplate->setStatus(::com::sun::star::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED); aTemplate->setStatus(::com::sun::star::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED);
/*----------------------------------------
if( pEncCtx->resultReplaced != 0 ) { if( pEncCtx->resultReplaced != 0 ) {
pContent = pEncryptedData ; pContent = pEncryptedData ;
...@@ -301,7 +299,6 @@ XMLEncryption_MSCryptImpl :: decrypt( ...@@ -301,7 +299,6 @@ XMLEncryption_MSCryptImpl :: decrypt(
xmlSecEncCtxDestroy( pEncCtx ) ; xmlSecEncCtxDestroy( pEncCtx ) ;
throw RuntimeException() ; throw RuntimeException() ;
} }
----------------------------------------*/
//Destroy the encryption context //Destroy the encryption context
xmlSecEncCtxDestroy( pEncCtx ) ; xmlSecEncCtxDestroy( pEncCtx ) ;
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <sal/main.h> #include <sal/main.h>
#include <vcl/event.hxx> #include <vcl/event.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
...@@ -66,8 +65,6 @@ void Main(); ...@@ -66,8 +65,6 @@ void Main();
#define BUTTONHEIGHT 22 #define BUTTONHEIGHT 22
#define BUTTONSPACE 20 #define BUTTONSPACE 20
// -----------------------------------------------------------------------
SAL_IMPLEMENT_MAIN() SAL_IMPLEMENT_MAIN()
{ {
uno::Reference< lang::XMultiServiceFactory > xMSF; uno::Reference< lang::XMultiServiceFactory > xMSF;
...@@ -102,8 +99,6 @@ void Main(); ...@@ -102,8 +99,6 @@ void Main();
return 0; return 0;
} }
// -----------------------------------------------------------------------
class MyWin : public WorkWindow class MyWin : public WorkWindow
{ {
private: private:
...@@ -141,8 +136,6 @@ public: ...@@ -141,8 +136,6 @@ public:
}; };
// -----------------------------------------------------------------------
void Main() void Main()
{ {
MyWin aMainWin( NULL, WB_APP | WB_STDWORK | WB_3DLOOK); MyWin aMainWin( NULL, WB_APP | WB_STDWORK | WB_3DLOOK);
...@@ -151,8 +144,6 @@ void Main() ...@@ -151,8 +144,6 @@ void Main()
Application::Execute(); Application::Execute();
} }
// -----------------------------------------------------------------------
MyWin::MyWin( Window* pParent, WinBits nWinStyle ) : MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle ), WorkWindow( pParent, nWinStyle ),
maTokenLine( this ), maTokenLine( this ),
...@@ -214,7 +205,6 @@ MyWin::MyWin( Window* pParent, WinBits nWinStyle ) : ...@@ -214,7 +205,6 @@ MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
nY += EDITHEIGHT*3/2; nY += EDITHEIGHT*3/2;
maFixedTextDOCFileName.SetPosSizePixel( TEXTFIELDSTARTX, nY, TEXTFIELDWIDTH, EDITHEIGHT ); maFixedTextDOCFileName.SetPosSizePixel( TEXTFIELDSTARTX, nY, TEXTFIELDWIDTH, EDITHEIGHT );
maFixedTextDOCFileName.SetText( OUString("Office File:") ); maFixedTextDOCFileName.SetText( OUString("Office File:") );
maFixedTextDOCFileName.Show(); maFixedTextDOCFileName.Show();
...@@ -290,7 +280,6 @@ IMPL_LINK_NOARG(MyWin, DigitalSignaturesWithServiceHdl) ...@@ -290,7 +280,6 @@ IMPL_LINK_NOARG(MyWin, DigitalSignaturesWithServiceHdl)
security::DocumentDigitalSignatures::createDefault(comphelper::getProcessComponentContext()) ); security::DocumentDigitalSignatures::createDefault(comphelper::getProcessComponentContext()) );
xD->signDocumentContent( xStore, NULL ); xD->signDocumentContent( xStore, NULL );
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment