summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-18 08:24:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-18 10:22:16 +0100
commit7938cae5178a4ce4093fd6494a058ab879ba303b (patch)
treed0d53cfe8f0c0c32fab053c0222f448fdaefbc50 /sd
parent904fb08b1ee9a632bbacd80439ef5919468c9464 (diff)
Remove unused SdrGrafObj::SetGraphicLink rReferer, rFilterName parameters
unused since 9fb7aaf570c03c8a26d763f1205fb8c890e8211a "Make linked graphic register into LinkedManager again", and remove further function parameters and class members that turn out to be unused now, too Change-Id: I3dd2b138fd8787d12b89547526da751ea5954845 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106041 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuinsert.cxx9
-rw-r--r--sd/source/ui/view/sdview4.cxx2
2 files changed, 3 insertions, 8 deletions
diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx
index cc93f6f38c37..f5bec6a0867a 100644
--- a/sd/source/ui/func/fuinsert.cxx
+++ b/sd/source/ui/func/fuinsert.cxx
@@ -105,7 +105,6 @@ rtl::Reference<FuPoor> FuInsertGraphic::Create( ViewShell* pViewSh, ::sd::Window
void FuInsertGraphic::DoExecute( SfxRequest& rReq )
{
OUString aFileName;
- OUString aFilterName;
Graphic aGraphic;
bool bAsLink = false;
@@ -119,6 +118,7 @@ void FuInsertGraphic::DoExecute( SfxRequest& rReq )
{
aFileName = static_cast<const SfxStringItem*>(pItem)->GetValue();
+ OUString aFilterName;
if ( pArgs->GetItemState( FN_PARAM_FILTER, true, &pItem ) == SfxItemState::SET )
aFilterName = static_cast<const SfxStringItem*>(pItem)->GetValue();
@@ -137,7 +137,6 @@ void FuInsertGraphic::DoExecute( SfxRequest& rReq )
nError = aDlg.GetGraphic(aGraphic);
bAsLink = aDlg.IsAsLink();
aFileName = aDlg.GetPath();
- aFilterName = aDlg.GetDetectedFilter();
}
if( nError == ERRCODE_NONE )
@@ -185,11 +184,7 @@ void FuInsertGraphic::DoExecute( SfxRequest& rReq )
}
// store as link
- OUString aReferer;
- if (mpDocSh->HasName()) {
- aReferer = mpDocSh->GetMedium()->GetName();
- }
- pGrafObj->SetGraphicLink(aFileName, aReferer, aFilterName);
+ pGrafObj->SetGraphicLink(aFileName);
}
}
}
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index c1305607db13..882258bd9231 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -427,7 +427,7 @@ IMPL_LINK_NOARG(View, DropInsertFileHdl, Timer *, void)
SdrGrafObj* pGrafObj = InsertGraphic( aGraphic, nTempAction, maDropPos, nullptr, nullptr );
if(pGrafObj && bLink)
{
- pGrafObj->SetGraphicLink( aCurrentDropFile, u""/*TODO?*/, OUString() );
+ pGrafObj->SetGraphicLink( aCurrentDropFile );
}
// return action from first inserted graphic