diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-18 08:24:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-18 10:22:16 +0100 |
commit | 7938cae5178a4ce4093fd6494a058ab879ba303b (patch) | |
tree | d0d53cfe8f0c0c32fab053c0222f448fdaefbc50 /sw/source/uibase/shells/drawsh.cxx | |
parent | 904fb08b1ee9a632bbacd80439ef5919468c9464 (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 'sw/source/uibase/shells/drawsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/drawsh.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx index fe8e6b470479..0f2c454da5d8 100644 --- a/sw/source/uibase/shells/drawsh.cxx +++ b/sw/source/uibase/shells/drawsh.cxx @@ -144,17 +144,9 @@ void SwDrawShell::InsertPictureFromFile(SdrObject& rObject) // triggers the same assertion (I tried it), so stay at the view method pSdrView->ReplaceObjectAtView(&rObject, *pSdrView->GetSdrPageView(), pNewGrafObj); - OUString aReferer; - SwDocShell *pDocShell = rSh.GetDoc()->GetDocShell(); - if (pDocShell->HasName()) { - aReferer = pDocShell->GetMedium()->GetName(); - } - // set in all cases - the Clone() will have copied an existing link (!) pNewGrafObj->SetGraphicLink( - bAsLink ? aDlg.GetPath() : OUString(), - aReferer, - bAsLink ? aDlg.GetDetectedFilter() : OUString()); + bAsLink ? aDlg.GetPath() : OUString()); pResult = pNewGrafObj; } |