diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-24 11:21:10 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-24 12:41:25 +0200 |
commit | 1eb41200948ab414f1c47d93123b41c547a993df (patch) | |
tree | 6a14bff7c95bb346825e60b6721b5829690eb0da /src/qml/qml/qqmlproperty.cpp | |
parent | 1d62cefbaa23ef96fa4dc36d950cc2d9a2d4b5c3 (diff) |
Remove QV8Bindings class
This class tries to optimise binding compilation with v8. With the
approach in v4 where we don't rewrite binding expressions anymore,
this is not required anymore.
Change-Id: I616aeeba85bc17a950d4c7341b3042ed8aa42bff
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
-rw-r--r-- | src/qml/qml/qqmlproperty.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp index 8fd65bd1f3..56e63473e0 100644 --- a/src/qml/qml/qqmlproperty.cpp +++ b/src/qml/qml/qqmlproperty.cpp @@ -57,7 +57,6 @@ #include "qqmlexpression_p.h" #include "qqmlvaluetypeproxybinding_p.h" #include <private/qjsvalue_p.h> -#include <private/qv8bindings_p.h> #include <QStringList> #include <private/qmetaobject_p.h> @@ -942,31 +941,6 @@ QQmlPropertyPrivate::setBindingNoEnable(QObject *object, int coreIndex, int valu } /*! - Activates a shared binding which was previously created but not added to the - object. This is needed when an optimized binding is invalidated. -*/ -QQmlAbstractBinding *QQmlPropertyPrivate::activateSharedBinding(QQmlContextData *context, - int sharedIdx, WriteFlags flags) -{ - QQmlAbstractBinding *newBinding = 0; - newBinding = context->v8bindings->binding(sharedIdx); - - if (!newBinding) - return newBinding; - - // This binding now references the bindings object - context->v8bindings->addref(); - - QObject *object = newBinding->object(); - int pi = newBinding->propertyIndex(); - - int core = pi & 0x0000FFFF; - int vt = (pi & 0xFFFF0000)?(pi >> 16):-1; - - return setBinding(object, core, vt, newBinding, flags); -} - -/*! Returns the expression associated with this signal property, or 0 if no signal expression exists. */ |