From 858e455634ebfff8ef7b65a9c97d3bc8240cd094 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 24 Mar 2015 10:49:28 +0200 Subject: loplugin:constantfunction: various Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed --- vbahelper/source/vbahelper/vbadocumentsbase.cxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbadocumentsbase.cxx b/vbahelper/source/vbahelper/vbadocumentsbase.cxx index 8c66d5bc029a..849bbd97e092 100644 --- a/vbahelper/source/vbahelper/vbadocumentsbase.cxx +++ b/vbahelper/source/vbahelper/vbadocumentsbase.cxx @@ -266,19 +266,6 @@ uno::Any VbaDocumentsBase::createDocument() throw (uno::RuntimeException, std::e return uno::makeAny( xComponent ); } -void VbaDocumentsBase::closeDocuments() throw (uno::RuntimeException) -{ -// #FIXME this *MUST* be wrong documents::close surely closes ALL documents -// in the collection, use of getCurrentDocument here is totally wrong -/* - uno::Reference< lang::XMultiComponentFactory > xSMgr( - mxContext->getServiceManager(), uno::UNO_QUERY_THROW ); - uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW ); - OUString url = ".uno:CloseDoc"; - dispatchRequests(xModel,url); -*/ -} - // #TODO# #FIXME# can any of the unused params below be used? uno::Any VbaDocumentsBase::openDocument( const OUString& rFileName, const uno::Any& ReadOnly, const uno::Sequence< beans::PropertyValue >& rProps ) throw (uno::RuntimeException) { -- cgit