summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-28 10:10:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-29 07:28:57 +0100
commita566fd1c1a50f9bcb4c69a19bdf4fb1955285d93 (patch)
tree13273efcf8aa69ce39a1860dc3d111c071e6a7b3 /sw
parent411260d836e7bf6c693b9b7d16af1b36184133af (diff)
loplugin:unusedmethods
Change-Id: I2efb5c0e5735c179314c6c5de87821cee3b033e1 Reviewed-on: https://gerrit.libreoffice.org/45386 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/SwNumberTree.hxx7
-rw-r--r--sw/inc/pagedesc.hxx2
-rw-r--r--sw/inc/view.hxx1
-rw-r--r--sw/source/core/SwNumberTree/SwNumberTree.cxx26
-rw-r--r--sw/source/core/access/acctable.cxx91
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx22
6 files changed, 0 insertions, 149 deletions
diff --git a/sw/inc/SwNumberTree.hxx b/sw/inc/SwNumberTree.hxx
index c81f159753ec..960d89335b0d 100644
--- a/sw/inc/SwNumberTree.hxx
+++ b/sw/inc/SwNumberTree.hxx
@@ -280,13 +280,6 @@ public:
void InvalidateMe();
/**
- Validate the tree.
-
- Validates all nodes in this subtree.
- */
- void ValidateTree();
-
- /**
Validates this node.
Calls Validate(this) on parent.
diff --git a/sw/inc/pagedesc.hxx b/sw/inc/pagedesc.hxx
index 8aae903f9f99..21878db19466 100644
--- a/sw/inc/pagedesc.hxx
+++ b/sw/inc/pagedesc.hxx
@@ -267,8 +267,6 @@ public:
static SwPageDesc* GetByName(SwDoc& rDoc, const OUString& rName);
SwPageDesc& operator=( const SwPageDesc& );
- bool operator<(const SwPageDesc& pd) const
- { return m_StyleName < pd.m_StyleName; }
SwPageDesc( const SwPageDesc& );
virtual ~SwPageDesc() override;
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index a1dc5bcf9359..a865b4184ee5 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -528,7 +528,6 @@ public:
bool IsFormMode() const;
bool IsBezierEditMode();
bool AreOnlyFormsSelected() const;
- bool HasDrwObj(SdrObject const *pSdrObj) const;
bool HasOnlyObj(SdrObject const *pSdrObj, SdrInventor eObjInventor) const;
bool BeginTextEdit( SdrObject* pObj, SdrPageView* pPV=nullptr,
vcl::Window* pWin=nullptr, bool bIsNewObj=false, bool bSetSelectionToStart=false );
diff --git a/sw/source/core/SwNumberTree/SwNumberTree.cxx b/sw/source/core/SwNumberTree/SwNumberTree.cxx
index f7d1364d0271..fc28b13fb396 100644
--- a/sw/source/core/SwNumberTree/SwNumberTree.cxx
+++ b/sw/source/core/SwNumberTree/SwNumberTree.cxx
@@ -297,32 +297,6 @@ void SwNumberTreeNode::Validate(const SwNumberTreeNode * pNode) const
}
}
-void SwNumberTreeNode::ValidateTree()
-{
- if (! IsContinuous())
- {
- {
- tSwNumberTreeChildren::reverse_iterator aIt = mChildren.rbegin();
-
- if (aIt != mChildren.rend())
- Validate(*aIt);
- }
- {
- tSwNumberTreeChildren::iterator aIt;
-
- for (aIt = mChildren.begin(); aIt != mChildren.end(); ++aIt)
- (*aIt)->ValidateTree();
- }
- }
- else
- {
- SwNumberTreeNode * pNode = GetLastDescendant();
-
- if (pNode && pNode->mpParent)
- pNode->mpParent->Validate(pNode);
- }
-}
-
void SwNumberTreeNode::GetNumberVector_(vector<SwNumberTree::tSwNumTreeNumber> & rVector,
bool bValidate) const
{
diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx
index beefc840863b..34d95e65d59b 100644
--- a/sw/source/core/access/acctable.cxx
+++ b/sw/source/core/access/acctable.cxx
@@ -83,8 +83,6 @@ class SwAccessibleTableData_Impl
bool mbOnlyTableColumnHeader;
void CollectData( const SwFrame *pFrame );
- void CollectColumnHeaderData( const SwFrame *pFrame );
- void CollectRowHeaderData( const SwFrame *pFrame );
void CollectExtents( const SwFrame *pFrame );
bool FindCell( const Point& rPos, const SwFrame *pFrame ,
@@ -174,95 +172,6 @@ void SwAccessibleTableData_Impl::CollectData( const SwFrame *pFrame )
}
}
-void SwAccessibleTableData_Impl::CollectRowHeaderData( const SwFrame *pFrame )
-{
- const SwAccessibleChildSList aList( *pFrame, mrAccMap );
- SwAccessibleChildSList::const_iterator aIter( aList.begin() );
- SwAccessibleChildSList::const_iterator aEndIter( aList.end() );
- while( aIter != aEndIter )
- {
- const SwAccessibleChild& rLower = *aIter;
- const SwFrame *pLower = rLower.GetSwFrame();
- if( pLower )
- {
- if( pLower->IsRowFrame() )
- {
-
- const SwTableLine* pLine = static_cast<const SwRowFrame*>(pLower)->GetTabLine();
- while( pLine->GetUpper() )
- pLine = pLine->GetUpper()->GetUpper();
-
- // Headerline?
- //if(mpTabFrame->GetTable()->GetTabLines()[ 0 ] != pLine)
- //return ;
-
- maRows.insert( pLower->getFrameArea().Top() - maTabFramePos.Y() );
-
- CollectRowHeaderData( pLower );
-
- }
- else if( pLower->IsCellFrame() &&
- rLower.IsAccessible( mbIsInPagePreview ) )
- {
- //Added by yanjun. Can't find the "GetRowHeaderFlag" function (need verify).
- //if(static_cast<SwCellFrame*>(pLower)->GetRowHeaderFlag())
- // maColumns.insert( pLower->getFrameArea().Left() - maTabFramePos.X() );
- }
- else
- {
- CollectRowHeaderData( pLower );
- }
- }
- ++aIter;
- }
-}
-
-void SwAccessibleTableData_Impl::CollectColumnHeaderData( const SwFrame *pFrame )
-{
- const SwAccessibleChildSList aList( *pFrame, mrAccMap );
- SwAccessibleChildSList::const_iterator aIter( aList.begin() );
- SwAccessibleChildSList::const_iterator aEndIter( aList.end() );
- while( aIter != aEndIter )
- {
- const SwAccessibleChild& rLower = *aIter;
- const SwFrame *pLower = rLower.GetSwFrame();
- if( pLower )
- {
- if( pLower->IsRowFrame() )
- {
-
- const SwTableLine* pLine = static_cast<const SwRowFrame*>(pLower)->GetTabLine();
- while( pLine->GetUpper() )
- pLine = pLine->GetUpper()->GetUpper();
-
- // Headerline?
- //if(mpTabFrame->GetTable()->GetTabLines()[ 0 ] != pLine)
- //return ;
-
- //if the current line is now header line, then return ;
- sal_Int16 iCurrentRowIndex = mpTabFrame->GetTable()->GetTabLines().GetPos( pLine);
- if(iCurrentRowIndex >= mpTabFrame->GetTable()->GetRowsToRepeat_())
- return ;
-
- maRows.insert( pLower->getFrameArea().Top() - maTabFramePos.Y() );
-
- CollectColumnHeaderData( pLower );
-
- }
- else if( pLower->IsCellFrame() &&
- rLower.IsAccessible( mbIsInPagePreview ) )
- {
- maColumns.insert( pLower->getFrameArea().Left() - maTabFramePos.X() );
- }
- else
- {
- CollectColumnHeaderData( pLower );
- }
- }
- ++aIter;
- }
-}
-
void SwAccessibleTableData_Impl::CollectExtents( const SwFrame *pFrame )
{
const SwAccessibleChildSList aList( *pFrame, mrAccMap );
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx
index 04e2bcdfa32b..013e40085d02 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -677,28 +677,6 @@ bool SwView::AreOnlyFormsSelected() const
return bForm;
}
-bool SwView::HasDrwObj(SdrObject const *pSdrObj) const
-{
- bool bRet = false;
-
- if (pSdrObj->IsGroupObject())
- {
- SdrObjList* pList = pSdrObj->GetSubList();
- const size_t nCnt = pList->GetObjCount();
-
- for (size_t i = 0; i < nCnt; ++i)
- {
- bRet = HasDrwObj(pList->GetObj(i));
- if (bRet)
- break;
- }
- }
- else if (SdrInventor::Default == pSdrObj->GetObjInventor() || pSdrObj->Is3DObj())
- return true;
-
- return bRet;
-}
-
bool SwView::HasOnlyObj(SdrObject const *pSdrObj, SdrInventor eObjInventor) const
{
bool bRet = false;