summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-17 16:16:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-17 19:34:49 +0100
commit32625c819b60318934f27df628fe35f10d5eb25a (patch)
tree0ccf63e96c35d2c9020be4426614fdbd7e9c3938 /sfx2/source
parent5110cca39cc55c8977b81f7b09873e626144b29b (diff)
Remove unused SfxFrameDescriptor::SetActualURL parameter
It got technically unused when e79e8117dcc7475d8d90afeaaac9eb7050ff244e "loplugin:unusedfields in sfx2" removed SfxFrameDescriptor::aActualURL, which in turn had apparently become unused over a series of commits cleaning up unused code. The function looks like a misnomer now, and it is not clear to me whether what it does is still useful (and whether or not all the clean-up that brought us here was actually good), but lets leave the remains as they are for now. Change-Id: I0479068176cc72193b2b44fc49d8fd3d71eadcb5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106013 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/frmdescr.cxx4
-rw-r--r--sfx2/source/view/frame.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/frmdescr.cxx b/sfx2/source/doc/frmdescr.cxx
index a9acefa8ad44..b97d3b6bbdcc 100644
--- a/sfx2/source/doc/frmdescr.cxx
+++ b/sfx2/source/doc/frmdescr.cxx
@@ -45,10 +45,10 @@ SfxItemSet* SfxFrameDescriptor::GetArgs()
void SfxFrameDescriptor::SetURL( const OUString& rURL )
{
aURL = INetURLObject(rURL);
- SetActualURL(aURL.GetMainURL( INetURLObject::DecodeMechanism::ToIUri ));
+ SetActualURL();
}
-void SfxFrameDescriptor::SetActualURL( std::u16string_view )
+void SfxFrameDescriptor::SetActualURL()
{
if ( m_pArgs )
m_pArgs->ClearItem();
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index 385b20ef967f..efd6a4e67a96 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -308,7 +308,7 @@ void SfxFrame::UpdateDescriptor( SfxObjectShell const *pDoc )
assert(pDoc && "NULL-Document inserted ?!");
const SfxMedium *pMed = pDoc->GetMedium();
- GetDescriptor()->SetActualURL( pMed->GetOrigURL() );
+ GetDescriptor()->SetActualURL();
// Mark FileOpen parameter
SfxItemSet* pItemSet = pMed->GetItemSet();