aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcustomparser_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-03-29 14:11:38 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-29 21:20:32 +0100
commit61e519e230217aa32869ed70fc38ee947fb9b313 (patch)
treee39ee106dbeb8b493d1d836d394e4ed7d6d709b1 /src/qml/qml/qqmlcustomparser_p.h
parentabbb5c2bd9e1701c07d59d47e3f401a84537cc75 (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_p.h')
-rw-r--r--src/qml/qml/qqmlcustomparser_p.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlcustomparser_p.h b/src/qml/qml/qqmlcustomparser_p.h
index fb9c405b59..49a397d3bb 100644
--- a/src/qml/qml/qqmlcustomparser_p.h
+++ b/src/qml/qml/qqmlcustomparser_p.h
@@ -71,8 +71,6 @@ struct QQmlCustomParserCompilerBackend
const QMetaObject *resolveType(const QString& name) const;
virtual QQmlBinding::Identifier bindingIdentifier(const QV4::CompiledData::Binding *, QQmlCustomParser *) { return QQmlBinding::Invalid; }
-
- virtual QQmlJS::AST::Node *astForBinding(int, int) const { return 0; }
};
class Q_QML_PRIVATE_EXPORT QQmlCustomParser
@@ -110,8 +108,6 @@ protected:
QQmlBinding::Identifier bindingIdentifier(const QV4::CompiledData::Binding *binding);
- QQmlJS::AST::Node *astForBinding(int objectIndex, int scriptIndex) const;
-
private:
QList<QQmlError> exceptions;
QQmlCustomParserCompilerBackend *compiler;