aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-05-19 14:02:03 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:02 -0300
commit81079a9c9f4a9ee6f7f017b10bfab2967f1212e0 (patch)
treee4fbfaa8a1d3f08e10a86fc59c845f43645f6b95 /abstractmetabuilder.cpp
parente91afbd99e5397c83bfb408133904738536ef25a (diff)
Remove useless castType variable.
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index dfe5803fe..6e6a4a6e6 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -1510,9 +1510,6 @@ AbstractMetaFunction *AbstractMetaBuilder::traverseFunction(FunctionModelItem fu
if (functionItem->isFriend())
return 0;
-
- QString cast_type;
-
AbstractMetaFunction *metaFunction = createMetaFunction();
metaFunction->setConstant(functionItem->isConstant());
@@ -1562,15 +1559,7 @@ AbstractMetaFunction *AbstractMetaBuilder::traverseFunction(FunctionModelItem fu
metaFunction->setName(m_currentClass->name());
} else {
bool ok;
- AbstractMetaType *type = 0;
-
- if (!cast_type.isEmpty()) {
- TypeInfo info;
- info.setQualifiedName(QStringList(cast_type));
- type = translateType(info, &ok);
- } else {
- type = translateType(functionType, &ok);
- }
+ AbstractMetaType* type = translateType(functionType, &ok);
if (!ok) {
ReportHandler::warning(QString("skipping function '%1::%2', unmatched return type '%3'")