[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 25 13:09:26 UTC 2019


 sd/source/ui/func/fupage.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit a0323fef144292d88bace75b37183e2000360699
Author:     Marco Cecchetti <marco.cecchetti at collabora.com>
AuthorDate: Mon Feb 25 14:06:06 2019 +0100
Commit:     Marco Cecchetti <marco.cecchetti at collabora.com>
CommitDate: Mon Feb 25 14:06:51 2019 +0100

    removed unused code
    
    Change-Id: I7cbb34e06783efd619ea26572e4dc0f941d60030

diff --git a/sd/source/ui/func/fupage.cxx b/sd/source/ui/func/fupage.cxx
index 155d8a3e5d86..15a8c5156cee 100644
--- a/sd/source/ui/func/fupage.cxx
+++ b/sd/source/ui/func/fupage.cxx
@@ -307,7 +307,6 @@ const SfxItemSet* FuPage::ExecuteDialog(vcl::Window* pParent, SfxRequest& rReq)
         OUString aFilterName;
         Graphic aGraphic;
         ErrCode nError = ERRCODE_GRFILTER_OPENERROR;
-        bool bAsLink = false;
 
         const SfxItemSet* pArgs = rReq.GetArgs();
         const SfxPoolItem* pItem;
@@ -319,9 +318,6 @@ const SfxItemSet* FuPage::ExecuteDialog(vcl::Window* pParent, SfxRequest& rReq)
             if (pArgs->GetItemState(FN_PARAM_FILTER, true, &pItem) == SfxItemState::SET)
                 aFilterName = static_cast<const SfxStringItem*>(pItem)->GetValue();
 
-            if (pArgs->GetItemState(FN_PARAM_1, true, &pItem) == SfxItemState::SET)
-                bAsLink = static_cast<const SfxBoolItem*>(pItem)->GetValue();
-
             nError = GraphicFilter::LoadGraphic(aFileName, aFilterName, aGraphic,
                                                 &GraphicFilter::GetGraphicFilter());
         }
@@ -333,7 +329,6 @@ const SfxItemSet* FuPage::ExecuteDialog(vcl::Window* pParent, SfxRequest& rReq)
             if (nError != ERRCODE_NONE)
             {
                 nError = aDlg.GetGraphic(aGraphic);
-                bAsLink = aDlg.IsAsLink();
                 aFileName = aDlg.GetPath();
                 aFilterName = aDlg.GetDetectedFilter();
             }


More information about the Libreoffice-commits mailing list