summaryrefslogtreecommitdiff
path: root/include/basic
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 /include/basic
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 'include/basic')
-rw-r--r--include/basic/sbxvar.hxx32
1 files changed, 0 insertions, 32 deletions
diff --git a/include/basic/sbxvar.hxx b/include/basic/sbxvar.hxx
index 2f56372d9f3f..6dfd7e21a094 100644
--- a/include/basic/sbxvar.hxx
+++ b/include/basic/sbxvar.hxx
@@ -192,35 +192,15 @@ public:
// TODO: Ensure error conditions (overflow, conversions)
// are taken into consideration in Compute and Compare
- inline bool operator ==( const SbxValue& ) const;
- inline bool operator !=( const SbxValue& ) const;
- inline bool operator <( const SbxValue& ) const;
- inline bool operator >( const SbxValue& ) const;
inline bool operator <=( const SbxValue& ) const;
inline bool operator >=( const SbxValue& ) const;
inline SbxValue& operator *=( const SbxValue& );
inline SbxValue& operator /=( const SbxValue& );
- inline SbxValue& operator %=( const SbxValue& );
inline SbxValue& operator +=( const SbxValue& );
inline SbxValue& operator -=( const SbxValue& );
- inline SbxValue& operator &=( const SbxValue& );
- inline SbxValue& operator |=( const SbxValue& );
- inline SbxValue& operator ^=( const SbxValue& );
};
-inline bool SbxValue::operator==( const SbxValue& r ) const
-{ return Compare( SbxEQ, r ); }
-
-inline bool SbxValue::operator!=( const SbxValue& r ) const
-{ return Compare( SbxNE, r ); }
-
-inline bool SbxValue::operator<( const SbxValue& r ) const
-{ return Compare( SbxLT, r ); }
-
-inline bool SbxValue::operator>( const SbxValue& r ) const
-{ return Compare( SbxGT, r ); }
-
inline bool SbxValue::operator<=( const SbxValue& r ) const
{ return Compare( SbxLE, r ); }
@@ -233,24 +213,12 @@ inline SbxValue& SbxValue::operator*=( const SbxValue& r )
inline SbxValue& SbxValue::operator/=( const SbxValue& r )
{ Compute( SbxDIV, r ); return *this; }
-inline SbxValue& SbxValue::operator%=( const SbxValue& r )
-{ Compute( SbxMOD, r ); return *this; }
-
inline SbxValue& SbxValue::operator+=( const SbxValue& r )
{ Compute( SbxPLUS, r ); return *this; }
inline SbxValue& SbxValue::operator-=( const SbxValue& r )
{ Compute( SbxMINUS, r ); return *this; }
-inline SbxValue& SbxValue::operator&=( const SbxValue& r )
-{ Compute( SbxAND, r ); return *this; }
-
-inline SbxValue& SbxValue::operator|=( const SbxValue& r )
-{ Compute( SbxOR, r ); return *this; }
-
-inline SbxValue& SbxValue::operator^=( const SbxValue& r )
-{ Compute( SbxXOR, r ); return *this; }
-
class SbxArray;
class SbxInfo;