Remove unused SfxFrameDescriptor::SetActualURL parameter
It got technically unused when e79e8117dc
"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>
This commit is contained in:
@@ -66,7 +66,7 @@ public:
|
||||
const INetURLObject& GetURL() const
|
||||
{ return aURL; }
|
||||
void SetURL( const OUString& rURL );
|
||||
void SetActualURL( std::u16string_view rURL );
|
||||
void SetActualURL();
|
||||
|
||||
// FrameName
|
||||
const OUString& GetName() const
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user