From 4a3f6e58b591f2fe2204f7cbc1efc8abb0aade74 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Mon, 8 Dec 2014 10:25:09 +0100 Subject: QML: fix warning in tests Remove unused function that wouldn't be emitted anyway. Change-Id: I623d5d44bca9a1358cf9e66ff557992aba9ae451 Reviewed-by: Simon Hausmann --- .../qquickaccessible/tst_qquickaccessible.cpp | 23 ---------------------- 1 file changed, 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= -- cgit v1.2.3