summaryrefslogtreecommitdiff
path: root/sw/inc/index.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-02 16:15:51 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-02-08 06:08:14 +0000
commitb14224fe97b8a44232c9c1401d3a49771f46582e (patch)
tree8f9cf31cf4b51a0edbb43022499a6acd17d0945d /sw/inc/index.hxx
parentc474e610e453d0f38f7cc6cb9559ad7e7b5d69ca (diff)
loplugin:unusedmethods
using an idea from dtardon: <dtardon> noelgrandin, hi. could you try to run the unusedmethods clang plugin with "make build-nocheck"? that would catch functions that are only used in tests. e.g., i just removed the whole o3tl::range class, which has not been used in many years, but htere was a test for it... <noelgrandin> dtardon, interesting idea! Sure, I can do that. Change-Id: I5653953a426a2186a1e43017212d87ffce520387 Reviewed-on: https://gerrit.libreoffice.org/22041 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/inc/index.hxx')
-rw-r--r--sw/inc/index.hxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/sw/inc/index.hxx b/sw/inc/index.hxx
index a1400553c73e..fecfa983b6b9 100644
--- a/sw/inc/index.hxx
+++ b/sw/inc/index.hxx
@@ -63,13 +63,10 @@ public:
sal_Int32 operator++();
sal_Int32 operator--();
- sal_Int32 operator++(int);
sal_Int32 operator--(int);
sal_Int32 operator+=( sal_Int32 const );
sal_Int32 operator-=( sal_Int32 const );
- sal_Int32 operator+=( const SwIndex& );
- sal_Int32 operator-=( const SwIndex& );
bool operator< ( const SwIndex& ) const;
bool operator<=( const SwIndex& ) const;
@@ -144,13 +141,6 @@ inline sal_Int32 SwIndex::operator--()
return ChgValue( *this, m_nIndex-1 ).m_nIndex;
}
-inline sal_Int32 SwIndex::operator++(int)
-{
- sal_Int32 const nOldIndex = m_nIndex;
- ChgValue( *this, m_nIndex+1 );
- return nOldIndex;
-}
-
inline sal_Int32 SwIndex::operator--(int)
{
sal_Int32 const nOldIndex = m_nIndex;
@@ -168,16 +158,6 @@ inline sal_Int32 SwIndex::operator-=( sal_Int32 const nVal )
return ChgValue( *this, m_nIndex - nVal ).m_nIndex;
}
-inline sal_Int32 SwIndex::operator+=( const SwIndex& rIndex )
-{
- return ChgValue( *this, m_nIndex + rIndex.m_nIndex ).m_nIndex;
-}
-
-inline sal_Int32 SwIndex::operator-=( const SwIndex& rIndex )
-{
- return ChgValue( *this, m_nIndex - rIndex.m_nIndex ).m_nIndex;
-}
-
inline bool SwIndex::operator< ( const SwIndex& rIndex ) const
{
return m_nIndex < rIndex.m_nIndex;