diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-03-12 10:48:44 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-12 13:14:05 +0100 |
commit | 0ecec0e903f80c8657f323a51973b81cdeebcac1 (patch) | |
tree | ee64105280588da0a873452b484698398038598e /src | |
parent | 6a0f84e0a86b9c27a861e19b4eb7bb4701a1e3c7 (diff) |
Remove unnecessary function.
The reconstituteFieldMemberExpression static function was not usedf
anywhere.
Change-Id: Ide23045d7f7c3194a9725ae658df85562ba29ad5
Reviewed-by: Martin Smith <martin.smith@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/qdoc/qmlvisitor.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/tools/qdoc/qmlvisitor.cpp b/src/tools/qdoc/qmlvisitor.cpp index f04b220f32..9c934ebcd1 100644 --- a/src/tools/qdoc/qmlvisitor.cpp +++ b/src/tools/qdoc/qmlvisitor.cpp @@ -439,31 +439,6 @@ void QmlDocVisitor::endVisit(QQmlJS::AST::UiImportList *definition) lastEndOffset = definition->lastSourceLocation().end(); } -typedef QQmlJS::AST::ExpressionNode EN; -typedef QQmlJS::AST::IdentifierExpression IE; -typedef QQmlJS::AST::FieldMemberExpression FME; - -static QString reconstituteFieldMemberExpression(EN* en) -{ - QString s; - if (en) { - qDebug() << " There is an expression" << en->kind; - if (en->kind == QQmlJS::AST::Node::Kind_FieldMemberExpression) { - FME* fme = (FME*) en; - s = reconstituteFieldMemberExpression(fme->base); - s += QLatin1Char('.') + fme->name.toString(); - } - else if (en->kind == QQmlJS::AST::Node::Kind_IdentifierExpression) { - IE* ie = (IE*) en; - s = ie->name.toString(); - } - else { - qDebug() << " But it wasn't a recognized expression kind"; - } - } - return s; -} - /*! Visits the public \a member declaration, which can be a signal or a property. It is a custom signal or property. |