aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/v8/qv8sequencewrapper_p_p.h
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2011-11-04 14:13:43 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-11 08:20:53 +0100
commit43c516be86fb0b825b27144a68d837b87c3e1a23 (patch)
treea597cccb04b53b259de497d7143479847c821816 /src/declarative/qml/v8/qv8sequencewrapper_p_p.h
parent851412e58ee70d76ecf405d113a1d29d82157e53 (diff)
Remove unused codepaths from QV8SequenceWrapper
The object equality comparison callback does not allow an object with a sequence resource to be equal to an object with a variant resource. As such, the SequenceType::isEqual(QVariant) codepaths are not needed. Also, QVariantList conversion is handled by toBasicVariant() in the QV8Engine, and thus we don't need conversion code for this type in the sequence wrapper. Change-Id: I2ec599c5ad6cfdb715cd4e0aae3f0cc3bb36cfdf Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qv8sequencewrapper_p_p.h')
-rw-r--r--src/declarative/qml/v8/qv8sequencewrapper_p_p.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/declarative/qml/v8/qv8sequencewrapper_p_p.h b/src/declarative/qml/v8/qv8sequencewrapper_p_p.h
index f609aff223..04814e9efe 100644
--- a/src/declarative/qml/v8/qv8sequencewrapper_p_p.h
+++ b/src/declarative/qml/v8/qv8sequencewrapper_p_p.h
@@ -79,7 +79,6 @@ public:
enum ObjectType { Reference, Copy };
virtual QVariant toVariant() = 0;
- virtual bool isEqual(const QVariant &v) = 0;
virtual bool isEqual(const QV8SequenceResource *v) = 0;
virtual quint32 lengthGetter() = 0;
@@ -256,16 +255,6 @@ static QString convertUrlToString(QV8Engine *, const QUrl &v)
} \
return QVariant::fromValue<SequenceType>(c); \
} \
- bool isEqual(const QVariant &v) \
- { \
- if (objectType == QV8SequenceResource::Reference) { \
- if (!object) \
- return false; \
- void *a[] = { &c, 0 }; \
- QMetaObject::metacall(object, QMetaObject::ReadProperty, propertyIndex, a); \
- } \
- return (c == v.value<SequenceType>()); \
- } \
bool isEqual(const QV8SequenceResource *v) \
{ \
/* Note: two different sequences can never be equal (even if they */ \