diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-16 10:11:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-18 10:03:44 +0000 |
commit | 2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae (patch) | |
tree | 66ba7ff0b95cf5ceeda5e53294a71c6786460eb3 /idl | |
parent | 4e59eecc077d27dd9762e7c890b2aaf92a212959 (diff) |
update unusedmethods plugin to deal with constructors
and fix the operator< implementations in some of the other
plugins too.
Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035
Reviewed-on: https://gerrit.libreoffice.org/25057
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/bastype.hxx | 1 | ||||
-rw-r--r-- | idl/inc/lex.hxx | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx index afe3642d10e0..4e176a5b3ad9 100644 --- a/idl/inc/bastype.hxx +++ b/idl/inc/bastype.hxx @@ -35,7 +35,6 @@ class SvBOOL bSet:1; public: SvBOOL() { bSet = bVal = false; } - SvBOOL( bool b ) : bVal( b ), bSet( true ) {} SvBOOL( bool b, bool bSetP ) : bVal( b ), bSet( bSetP ) {} SvBOOL & operator = ( bool n ) { bVal = n; bSet = true; return *this; } diff --git a/idl/inc/lex.hxx b/idl/inc/lex.hxx index 1891e3962006..10e41022ae23 100644 --- a/idl/inc/lex.hxx +++ b/idl/inc/lex.hxx @@ -59,7 +59,6 @@ public: void SetColumn( sal_uLong nColumnP ) { nColumn = nColumnP; } sal_uLong GetColumn() const { return nColumn; } - bool IsEmpty() const { return nType == SVTOKENTYPE::Empty; } bool IsComment() const { return nType == SVTOKENTYPE::Comment; } bool IsInteger() const { return nType == SVTOKENTYPE::Integer; } bool IsString() const { return nType == SVTOKENTYPE::String; } @@ -86,8 +85,6 @@ public: void SetHash( SvStringHashEntry * pHashP ) { pHash = pHashP; nType = SVTOKENTYPE::HashId; } - bool HasHash() const - { return nType == SVTOKENTYPE::HashId; } bool Is( SvStringHashEntry * pEntry ) const { return IsIdentifierHash() && pHash == pEntry; } }; @@ -190,17 +187,6 @@ public: return false; } - bool ReadIf( SvStringHashEntry* pEntry ) - { - if( GetToken().Is( pEntry ) ) - { - GetToken_Next(); - return true; - } - else - return false; - } - bool ReadIfDelimiter() { if( GetToken().IsChar() |