diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-28 09:58:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-28 13:31:49 +0200 |
commit | 2fbb97367ac93eb11429382f31fa6417eec76f8d (patch) | |
tree | 91b03fca5308c5fbe19bb309192bb75591e1f810 /sc | |
parent | d664a01f3be81572526d1136c261d86c12f5af90 (diff) |
loplugin:unusedmethods
Change-Id: I5f9ef043d76c55f2c761fd08a2bc1dae66b675c8
Reviewed-on: https://gerrit.libreoffice.org/61073
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/documentlinkmgr.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/docshell/documentlinkmgr.cxx | 16 |
2 files changed, 0 insertions, 17 deletions
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<ScDdeLink*>(pBase); - if (pDdeLink) - pDdeLink->Disconnect(); - } -} - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |