diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-03-29 14:11:38 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-29 21:20:32 +0100 |
commit | 61e519e230217aa32869ed70fc38ee947fb9b313 (patch) | |
tree | e39ee106dbeb8b493d1d836d394e4ed7d6d709b1 /src/qml/qml/qqmlcustomparser.cpp | |
parent | abbb5c2bd9e1701c07d59d47e3f401a84537cc75 (diff) |
Eliminate noop translation bindings
We can store them as regular strings. This has the advantage that the
entire special handling from the custom parser of the list model goes away,
we don't need astForBinding in QQmlCustomParser anymore neither and types
with a custom parser can now generally benefit from the expression simplification
pass.
Change-Id: I39d1b76edd1273d8c73b847aed71f7bcce37d877
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcustomparser.cpp')
-rw-r--r-- | src/qml/qml/qqmlcustomparser.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qml/qml/qqmlcustomparser.cpp b/src/qml/qml/qqmlcustomparser.cpp index fc08f33141..75acbdb778 100644 --- a/src/qml/qml/qqmlcustomparser.cpp +++ b/src/qml/qml/qqmlcustomparser.cpp @@ -142,11 +142,6 @@ QQmlBinding::Identifier QQmlCustomParser::bindingIdentifier(const QV4::CompiledD return compiler->bindingIdentifier(binding, this); } -QQmlJS::AST::Node *QQmlCustomParser::astForBinding(int objectIndex, int scriptIndex) const -{ - return compiler->astForBinding(objectIndex, scriptIndex); -} - struct StaticQtMetaObject : public QObject { static const QMetaObject *get() |