summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Literals.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-07-01 15:27:03 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2010-07-01 15:27:36 +0200
commit0f2a24641b24baac119a693c77897222eed0c879 (patch)
tree4f4a5400a935e6f675ccc9458b565f3f1ab12f59 /src/shared/cplusplus/Literals.cpp
parent4be3333bf3b163d41e93a423af1a134935879c0a (diff)
downloadqt-creator-0f2a24641b24baac119a693c77897222eed0c879.tar.gz
Get rid of NumericLiteral::isChar/isWideChar().
Diffstat (limited to 'src/shared/cplusplus/Literals.cpp')
-rw-r--r--src/shared/cplusplus/Literals.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/shared/cplusplus/Literals.cpp b/src/shared/cplusplus/Literals.cpp
index a90d82572b..d56f937c48 100644
--- a/src/shared/cplusplus/Literals.cpp
+++ b/src/shared/cplusplus/Literals.cpp
@@ -118,8 +118,6 @@ StringLiteral::~StringLiteral()
////////////////////////////////////////////////////////////////////////////////
enum {
- NumericLiteralIsChar,
- NumericLiteralIsWideChar,
NumericLiteralIsInt,
NumericLiteralIsFloat,
NumericLiteralIsDouble,
@@ -133,11 +131,7 @@ NumericLiteral::NumericLiteral(const char *chars, unsigned size)
{
f._type = NumericLiteralIsInt;
- if (chars[0] == '\'') {
- f._type = NumericLiteralIsChar;
- } else if (size > 1 && chars[0] == 'L' && chars[1] == '\'') {
- f._type = NumericLiteralIsWideChar;
- } else if (size > 1 && chars[0] == '0' && (chars[1] == 'x' || chars[1] == 'X')) {
+ if (size > 1 && chars[0] == '0' && (chars[1] == 'x' || chars[1] == 'X')) {
f._isHex = true;
} else {
const char *begin = chars;
@@ -192,12 +186,6 @@ bool NumericLiteral::isHex() const
bool NumericLiteral::isUnsigned() const
{ return f._isUnsigned; }
-bool NumericLiteral::isChar() const
-{ return f._type == NumericLiteralIsChar; }
-
-bool NumericLiteral::isWideChar() const
-{ return f._type == NumericLiteralIsWideChar; }
-
bool NumericLiteral::isInt() const
{ return f._type == NumericLiteralIsInt; }