summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCasper van Donderen <casper.vandonderen@nokia.com>2012-03-12 10:48:44 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-12 13:14:05 +0100
commit0ecec0e903f80c8657f323a51973b81cdeebcac1 (patch)
treeee64105280588da0a873452b484698398038598e /src
parent6a0f84e0a86b9c27a861e19b4eb7bb4701a1e3c7 (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.cpp25
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.