Remove unused codepaths from QV8SequenceWrapper
authorChris Adams <christopher.adams@nokia.com>
Fri, 4 Nov 2011 04:13:43 +0000 (14:13 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 11 Nov 2011 07:20:53 +0000 (08:20 +0100)
commit43c516be86fb0b825b27144a68d837b87c3e1a23
treea597cccb04b53b259de497d7143479847c821816
parent851412e58ee70d76ecf405d113a1d29d82157e53
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>
src/declarative/qml/v8/qv8sequencewrapper.cpp
src/declarative/qml/v8/qv8sequencewrapper_p_p.h
tests/auto/declarative/qdeclarativeecmascript/data/sequenceConversion.threads.qml
tests/auto/declarative/qdeclarativeecmascript/testtypes.h
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp