Commit c3e5d3c7 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

QmlJs: Remove dead code

Change-Id: I87cfb48652ab747e14ddcc8b3c5da55f5fcaa48d
Reviewed-by: default avatarThomas Hartmann <>
parent 9df379e0
......@@ -99,30 +99,6 @@ static inline QString textAt(const Document::Ptr doc,
return doc->source().mid(from.offset, to.end() - from.begin());
static inline int propertyType(const QString &typeName)
if (typeName == QLatin1String("bool"))
return QMetaType::type("bool");
else if (typeName == QLatin1String("color"))
return QMetaType::type("QColor");
else if (typeName == QLatin1String("date"))
return QMetaType::type("QDate");
else if (typeName == QLatin1String("int"))
return QMetaType::type("int");
else if (typeName == QLatin1String("real"))
return QMetaType::type("double");
else if (typeName == QLatin1String("double"))
return QMetaType::type("double");
else if (typeName == QLatin1String("string"))
return QMetaType::type("QString");
else if (typeName == QLatin1String("url"))
return QMetaType::type("QUrl");
else if (typeName == QLatin1String("variant"))
return QMetaType::type("QVariant");
return -1;
static bool isEnum(AST::Statement *ast);
bool isEnum(AST::ExpressionNode *ast)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment