From 3563fef9566cdf2828605bcfcb75bd2c9db46c13 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Fri, 17 Mar 2017 20:25:57 +0100 Subject: SfxViewFrame::ExecReload_Impl - remove written-only variable aURL Its only user was commented-out by commit 6c1be80980cbf02ecaf07996b1c2be5777f59124 (2004) and then removed by commit 40fe03745fc75609350cf8115134eb07f04eefa7 (2010) Change-Id: I821a97275b79230e9e389a9b57c82110fa16aa8e --- sfx2/source/view/viewfrm.cxx | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index e413b86a5cdf..1ddcaf90e5dc 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -553,13 +553,6 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) { SfxMedium *pMedium = xOldObj->GetMedium(); - // Remove Frameset before the FramesetView may disappear - OUString aURL; - if (pURLItem) - aURL = pURLItem->GetValue(); - else - aURL = pMedium->GetName(); - bool bHandsOff = ( pMedium->GetURLObject().GetProtocol() == INetProtocol::File && !xOldObj->IsDocShared() ); @@ -628,7 +621,6 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) const SfxStringItem* pSalvageItem = SfxItemSet::GetItem(pNewSet, SID_DOC_SALVAGE, false); if( pSalvageItem ) { - aURL = pSalvageItem->GetValue(); pNewSet->ClearItem( SID_DOC_SALVAGE ); } -- cgit