diff options
author | Lars Knoll <lars.knoll@qt.io> | 2016-12-05 13:28:26 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2016-12-09 14:02:05 +0000 |
commit | 91ac4a8d099d10fdfd5aa631da02727b7917d85f (patch) | |
tree | 27b7b6c9a0fbf41fac184423ce70682a4d6a3b43 /src/qml/jsruntime/qv4functionobject.cpp | |
parent | 3d582fd5c17b011a606001fe8635e732e4609328 (diff) | |
download | qtdeclarative-91ac4a8d099d10fdfd5aa631da02727b7917d85f.tar.gz |
Don't store a source location in the QQmlBindingFunction anymore
It's not needed anymore as we now store this in the binding
directly.
Change-Id: I518c83207f219b690f31200e4d17251075bbd322
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 0f2a0ebf86..5bbe2d5f9a 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -212,11 +212,6 @@ bool FunctionObject::isBoundFunction() const QQmlSourceLocation FunctionObject::sourceLocation() const { - if (isBinding()) { - Q_ASSERT(as<const QV4::QQmlBindingFunction>()); - return *static_cast<QV4::Heap::QQmlBindingFunction *>(d())->bindingLocation; - } - return d()->function->sourceLocation(); } |