From 2fbb97367ac93eb11429382f31fa6417eec76f8d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 28 Sep 2018 09:58:59 +0200 Subject: loplugin:unusedmethods Change-Id: I5f9ef043d76c55f2c761fd08a2bc1dae66b675c8 Reviewed-on: https://gerrit.libreoffice.org/61073 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/inc/documentlinkmgr.hxx | 1 - sc/source/ui/docshell/documentlinkmgr.cxx | 16 ---------------- 2 files changed, 17 deletions(-) (limited to 'sc') diff --git a/sc/inc/documentlinkmgr.hxx b/sc/inc/documentlinkmgr.hxx index 26531245fbb8..b0c85826b4db 100644 --- a/sc/inc/documentlinkmgr.hxx +++ b/sc/inc/documentlinkmgr.hxx @@ -62,7 +62,6 @@ public: size_t getDdeLinkCount() const; - void disconnectDdeLinks(); private: bool hasDdeOrOleOrWebServiceLinks(bool bDde, bool bOle, bool bWebService) const; }; diff --git a/sc/source/ui/docshell/documentlinkmgr.cxx b/sc/source/ui/docshell/documentlinkmgr.cxx index 0edd199fbe1c..0bdcc03534d0 100644 --- a/sc/source/ui/docshell/documentlinkmgr.cxx +++ b/sc/source/ui/docshell/documentlinkmgr.cxx @@ -260,22 +260,6 @@ size_t DocumentLinkManager::getDdeLinkCount() const return nDdeCount; } -void DocumentLinkManager::disconnectDdeLinks() -{ - sfx2::LinkManager* pMgr = mpImpl->mpLinkManager; - if (!pMgr) - return; - - const sfx2::SvBaseLinks& rLinks = pMgr->GetLinks(); - for (const auto & rLink : rLinks) - { - ::sfx2::SvBaseLink* pBase = rLink.get(); - ScDdeLink* pDdeLink = dynamic_cast(pBase); - if (pDdeLink) - pDdeLink->Disconnect(); - } -} - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit