From f466347a5a054c1705a0a3a453e825f16a01a85d Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 15 Jul 2015 14:58:27 +0200 Subject: sw: remove unused SwUnoTableCrsr::Clone() Change-Id: Ic41c9fb96bf0d3dc429f1de18b8ce93c50885827 --- sw/inc/unocrsr.hxx | 2 -- sw/source/core/unocore/unocrsr.cxx | 11 ----------- 2 files changed, 13 deletions(-) (limited to 'sw') diff --git a/sw/inc/unocrsr.hxx b/sw/inc/unocrsr.hxx index 32006a4db909..55063694c9dc 100644 --- a/sw/inc/unocrsr.hxx +++ b/sw/inc/unocrsr.hxx @@ -95,8 +95,6 @@ public: nsSwCursorSelOverFlags::SELOVER_TOGGLE | nsSwCursorSelOverFlags::SELOVER_CHANGEPOS )) SAL_OVERRIDE; - std::shared_ptr Clone() const; - void MakeBoxSels(); SwCursor& GetSelRing() { return m_aTableSel; } diff --git a/sw/source/core/unocore/unocrsr.cxx b/sw/source/core/unocore/unocrsr.cxx index 04f30ceea2f0..3aae518e2b93 100644 --- a/sw/source/core/unocore/unocrsr.cxx +++ b/sw/source/core/unocore/unocrsr.cxx @@ -57,17 +57,6 @@ SwUnoCrsr::~SwUnoCrsr() } } -std::shared_ptr SwUnoTableCrsr::Clone() const -{ - auto pNewCrsr(GetDoc()->CreateUnoCrsr(*GetPoint(), true)); - if(HasMark()) - { - pNewCrsr->SetMark(); - *pNewCrsr->GetMark() = *GetMark(); - } - return pNewCrsr; -} - bool SwUnoCrsr::IsReadOnlyAvailable() const { return true; -- cgit