summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-15 14:58:27 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-15 14:59:33 +0200
commitf466347a5a054c1705a0a3a453e825f16a01a85d (patch)
tree164c53280bcb57e364ab4617cd06f2592e4c2e37 /sw
parenta111044babf3ee929baf548b7ad29df0a419293b (diff)
sw: remove unused SwUnoTableCrsr::Clone()
Change-Id: Ic41c9fb96bf0d3dc429f1de18b8ce93c50885827
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/unocrsr.hxx2
-rw-r--r--sw/source/core/unocore/unocrsr.cxx11
2 files changed, 0 insertions, 13 deletions
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<SwUnoCrsr> 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<SwUnoCrsr> SwUnoTableCrsr::Clone() const
-{
- auto pNewCrsr(GetDoc()->CreateUnoCrsr(*GetPoint(), true));
- if(HasMark())
- {
- pNewCrsr->SetMark();
- *pNewCrsr->GetMark() = *GetMark();
- }
- return pNewCrsr;
-}
-
bool SwUnoCrsr::IsReadOnlyAvailable() const
{
return true;