summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Literals.cpp
diff options
context:
space:
mode:
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; }