summaryrefslogtreecommitdiff
path: root/idl/source/cmptools/lex.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-08 15:42:29 +0200
committerNoel Grandin <noel@peralex.com>2016-02-09 08:16:26 +0200
commitc7b66c1968371e335babfbada8b6bac2f83d9901 (patch)
tree7b0c85ab689a3222e3a6a1334af016f4ad1dfb77 /idl/source/cmptools/lex.cxx
parent7a6c044e97d02f6168d13cd7528d89e3b3a1dd3f (diff)
remove some more dead code, found by LCOV
Change-Id: I23404778d13b690fa2330f6db1a90d578b23468b
Diffstat (limited to 'idl/source/cmptools/lex.cxx')
-rw-r--r--idl/source/cmptools/lex.cxx27
1 files changed, 1 insertions, 26 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index a4ef530d6084..67c2cf182176 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -50,9 +50,6 @@ OString SvToken::GetTokenAsString() const
case SVTOKENTYPE::Char:
aStr = OString(cChar);
break;
- case SVTOKENTYPE::RttiBase:
- aStr = "RTTIBASE";
- break;
case SVTOKENTYPE::EndOfFile:
case SVTOKENTYPE::HashId:
break;
@@ -61,15 +58,6 @@ OString SvToken::GetTokenAsString() const
return aStr;
}
-SvToken::SvToken( const SvToken & rObj )
-{
- nLine = rObj.nLine;
- nColumn = rObj.nColumn;
- nType = rObj.nType;
- aString = rObj.aString;
- nLong = rObj.nLong;
-}
-
SvToken & SvToken::operator = ( const SvToken & rObj )
{
if( this != &rObj )
@@ -291,20 +279,7 @@ bool SvTokenStream::MakeToken( SvToken & rToken )
if( c == '"' )
{
c = GetFastNextChar();
- if( c == '"' )
- {
- aStr.append('"');
- aStr.append('"');
- }
- else
- bDone = true;
- }
- else if( c == '\\' )
- {
- aStr.append('\\');
- c = GetFastNextChar();
- if( c )
- aStr.append(static_cast<char>(c));
+ bDone = true;
}
else
aStr.append(static_cast<char>(c));