diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-12-08 10:25:09 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2014-12-09 09:58:20 +0100 |
commit | 4a3f6e58b591f2fe2204f7cbc1efc8abb0aade74 (patch) | |
tree | 9e9ceb711181a7f331852ad70504752a6476ed2c /tests/auto/quick/qquickaccessible | |
parent | 3f9ecd866df32c1f0f332c89646392bfeddf9d74 (diff) |
QML: fix warning in tests
Remove unused function that wouldn't be emitted anyway.
Change-Id: I623d5d44bca9a1358cf9e66ff557992aba9ae451
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/quick/qquickaccessible')
-rw-r--r-- | tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp b/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp index f6d5d16605..e0ea57056a 100644 --- a/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp +++ b/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp @@ -59,29 +59,6 @@ } \ } while (0) -static int verifyHierarchy(QAccessibleInterface *iface) -{ - int errorAt = 0; - static int treelevel = 0; // for error diagnostics - QAccessibleInterface *if2; - ++treelevel; - int middle = iface->childCount()/2 + 1; - for (int i = 0; i < iface->childCount() && !errorAt; ++i) { - if2 = iface->child(i); - EXPECT(if2 != 0); - // navigate Ancestor... - QAccessibleInterface *parent = if2->parent(); - EXPECT(iface->object() == parent->object()); - - // verify children... - if (!errorAt) - errorAt = verifyHierarchy(if2); - } - - --treelevel; - return errorAt; -} - //TESTED_FILES= |