diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2018-10-12 17:47:43 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2018-11-01 15:06:35 +0000 |
commit | f00b72f133665be30280e8e5d844824ce072d6e9 (patch) | |
tree | c28b9e1b244f1841c37ac19a2401ba7589c0da1a /src/testlib | |
parent | 35bba2cac5fb13ab07d2bfd3fee1d9284e8620b5 (diff) |
Remove some unused code from QTestCoreList
A count(T *list) was declared but not defined; and the plain count()
that was defined isn't called by anything. It's in a private header,
so can be removed without harm.
Task-number: QTPM-1385
Change-Id: I1ac580d57996895a4123b4f55fa984e9c8001ecb
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'src/testlib')
-rw-r--r-- | src/testlib/qtestcorelist_p.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/testlib/qtestcorelist_p.h b/src/testlib/qtestcorelist_p.h index 5943695876..4d080f6758 100644 --- a/src/testlib/qtestcorelist_p.h +++ b/src/testlib/qtestcorelist_p.h @@ -66,9 +66,6 @@ class QTestCoreList void addToList(T **list); T *nextElement(); T *previousElement(); - int count(T *list); - int count(); - private: T *next; T *prev; @@ -121,20 +118,6 @@ T *QTestCoreList<T>::previousElement() return prev; } -template <class T> -int QTestCoreList<T>::count() -{ - int numOfElements = 0; - T *it = next; - - while (it) { - ++numOfElements; - it = it->nextElement(); - } - - return numOfElements; -} - QT_END_NAMESPACE #endif |