aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvmemetaobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject.cpp')
-rw-r--r--src/qml/qml/qqmlvmemetaobject.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject.cpp b/src/qml/qml/qqmlvmemetaobject.cpp
index d1f747c1c4..08b1e09d76 100644
--- a/src/qml/qml/qqmlvmemetaobject.cpp
+++ b/src/qml/qml/qqmlvmemetaobject.cpp
@@ -123,8 +123,6 @@ public:
inline void setValue(const QRectF &);
inline void setValue(const QPointF &);
inline void setValue(const QSizeF &);
- inline void setValue(const QJSValue &);
-
inline void ensureValueType(int);
@@ -193,9 +191,6 @@ void QQmlVMEVariant::cleanup()
} else if (type == qMetaTypeId<QVariant>()) {
((QVariant *)dataPtr())->~QVariant();
type = QVariant::Invalid;
- } else if (type == qMetaTypeId<QJSValue>()) {
- ((QJSValue *)dataPtr())->~QJSValue();
- type = QVariant::Invalid;
} else {
if (QQml_valueTypeProvider()->destroyValueType(type, dataPtr(), dataSize())) {
type = QVariant::Invalid;
@@ -455,17 +450,6 @@ void QQmlVMEVariant::setValue(const QSizeF &v)
}
}
-void QQmlVMEVariant::setValue(const QJSValue &v)
-{
- if (type != qMetaTypeId<QJSValue>()) {
- cleanup();
- type = qMetaTypeId<QJSValue>();
- new (dataPtr()) QJSValue(v);
- } else {
- *(QJSValue *)(dataPtr()) = v;
- }
-}
-
void QQmlVMEVariant::ensureValueType(int t)
{
if (type != t) {