diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-11-01 12:48:12 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-02 00:53:26 +0100 |
commit | 60f6f63c543ada0de1c0be6c1f039dbcd107a1dd (patch) | |
tree | c9c7a2fdf94ebf1232831c76e5694e0f55618bec /tests/auto | |
parent | 983ba6510b72350c768f37aa93f0c9fbacf3c174 (diff) |
Remove unused code from qdbusmarshall test.
The removed functions have been unsued since at least as far back as
2006.
Change-Id: Id1ea77dbfffa319c18891968f3aa378cfb563fd4
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/dbus/qdbusmarshall/common.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/auto/dbus/qdbusmarshall/common.h b/tests/auto/dbus/qdbusmarshall/common.h index 35fe5f1bf7..9a102f0f75 100644 --- a/tests/auto/dbus/qdbusmarshall/common.h +++ b/tests/auto/dbus/qdbusmarshall/common.h @@ -721,35 +721,3 @@ template<> bool compare(const QVariant &v1, const QVariant &v2) return false; // unknown type } } - -#if 0 -bool compare(const QVariantList &l1, const QVariantList &l2) -{ - if (l1.count() != l2.size()) - return false; - QVariantList::ConstIterator i1 = l1.constBegin(); - QVariantList::ConstIterator i2 = l2.constBegin(); - QVariantList::ConstIterator end = l1.constEnd(); - for ( ; i1 != end; ++i1, ++i2) { - if (!compare(*i1, *i2)) - return false; - } - return true; -} - -bool compare(const QVariantMap &m1, const QVariantMap &m2) -{ - if (m1.count() != m2.size()) - return false; - QVariantMap::ConstIterator i1 = m1.constBegin(); - QVariantMap::ConstIterator end = m1.constEnd(); - for ( ; i1 != end; ++i1) { - QVariantMap::ConstIterator i2 = m2.find(i1.key()); - if (i2 == m2.constEnd()) - return false; - if (!compare(*i1, *i2)) - return false; - } - return true; -} -#endif |