From 64aa52d85fccaa9154c4fcb1686cc8a047ae4e2a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Aug 2020 15:56:50 +0200 Subject: remove dead code since commit 5be98eba1fddb559194066c511b53412009c2d5d Date: Thu Mar 27 10:29:38 2003 +0000 MWS_SRX644: migrate branch mws_srx644 -> HEAD found by loplugin:unusedvarsglobal Change-Id: I0184e9157caaa7d7d9d58ff20fb8d9293ab0d604 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100925 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/inet/inettbc.cxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sfx2/source/inet') diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx index 17dd5de0b61c..822374bc1cc3 100644 --- a/sfx2/source/inet/inettbc.cxx +++ b/sfx2/source/inet/inettbc.cxx @@ -120,7 +120,6 @@ SvtURLBox* SfxURLToolBoxControl_Impl::GetURLBox() const void SfxURLToolBoxControl_Impl::OpenURL( const OUString& rName ) const { OUString aName; - OUString aFilter; INetURLObject aObj( rName ); if ( aObj.GetProtocol() == INetProtocol::NotValid ) @@ -151,15 +150,6 @@ void SfxURLToolBoxControl_Impl::OpenURL( const OUString& rName ) const aArgs[1].Name = "FileName"; aArgs[1].Value <<= aName; - if ( !aFilter.isEmpty() ) - { - aArgs.realloc( 4 ); - aArgs[2].Name = "FilterOptions"; - aArgs[2].Value <<= OUString(); - aArgs[3].Name = "FilterName"; - aArgs[3].Value <<= aFilter; - } - SfxURLToolBoxControl_Impl::ExecuteInfo* pExecuteInfo = new SfxURLToolBoxControl_Impl::ExecuteInfo; pExecuteInfo->xDispatch = xDispatch; pExecuteInfo->aTargetURL = aTargetURL; -- cgit