From 0ecec0e903f80c8657f323a51973b81cdeebcac1 Mon Sep 17 00:00:00 2001 From: Casper van Donderen Date: Mon, 12 Mar 2012 10:48:44 +0100 Subject: Remove unnecessary function. The reconstituteFieldMemberExpression static function was not usedf anywhere. Change-Id: Ide23045d7f7c3194a9725ae658df85562ba29ad5 Reviewed-by: Martin Smith --- src/tools/qdoc/qmlvisitor.cpp | 25 ------------------------- 1 file changed, 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. -- cgit v1.2.3