summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-16 21:26:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-17 07:31:54 +0100
commit70a60cece0666b226c4f36d87d85ec9841bfb67c (patch)
tree5fc6fedac37709b623126e62c96b22bb64084c2b /sw/source
parent3b7faa73420550d508d480ed70146468dfadb268 (diff)
loplugin:unusedmethods
most of the removal is ripple effect from removing SvxIconChoiceCtrl_Impl::EditEntry which became dead after commit 630b5db9a10cd49d24d5e563374bd68f1fe670f5 Date: Tue Nov 13 08:40:07 2018 +0200 loplugin:singlevalfields in svtools Change-Id: Ibfaa7c925cc5549a4858cc62c59d848aab72f460 Reviewed-on: https://gerrit.libreoffice.org/63481 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/access/accpara.cxx34
-rw-r--r--sw/source/core/access/accpara.hxx2
2 files changed, 0 insertions, 36 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index e1edeaa5c771..20da92283755 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -533,40 +533,6 @@ bool SwAccessibleParagraph::IsValidRange(
return IsValidPosition(nBegin, nLength) && IsValidPosition(nEnd, nLength);
}
-SwTOXSortTabBase* SwAccessibleParagraph::GetTOXSortTabBase()
-{
- SwTextFrame const*const pFrame(static_cast<SwTextFrame const*>(GetFrame()));
- assert(pFrame);
- const SwTextNode *const pTextNd = pFrame->GetTextNodeFirst();
- if( pTextNd )
- {
- const SwSectionNode * pSectNd = pTextNd->FindSectionNode();
- if( pSectNd )
- {
- const SwSection * pSect = &pSectNd->GetSection();
- const SwTOXBaseSection *pTOXBaseSect = static_cast<const SwTOXBaseSection *>(pSect);
- if( pSect->GetType() == TOX_CONTENT_SECTION )
- {
- SwTOXSortTabBase* pSortBase = nullptr;
- size_t nSize = pTOXBaseSect->GetTOXSortTabBases().size();
-
- for(size_t nIndex = 0; nIndex<nSize; nIndex++ )
- {
- pSortBase = pTOXBaseSect->GetTOXSortTabBases()[nIndex].get();
- if( pSortBase->pTOXNd == pTextNd )
- break;
- }
-
- if (pSortBase)
- {
- return pSortBase;
- }
- }
- }
- }
- return nullptr;
-}
-
//the function is to check whether the position is in a redline range.
const SwRangeRedline* SwAccessibleParagraph::GetRedlineAtIndex()
{
diff --git a/sw/source/core/access/accpara.hxx b/sw/source/core/access/accpara.hxx
index 26afc0df73eb..5fd4766002c1 100644
--- a/sw/source/core/access/accpara.hxx
+++ b/sw/source/core/access/accpara.hxx
@@ -159,8 +159,6 @@ class SwAccessibleParagraph :
std::vector< css::beans::PropertyValue >& rValues );
public:
- SwTOXSortTabBase* GetTOXSortTabBase();
-
bool IsHeading() const;
protected: