diff options
author | Olivier Tilloy <olivier.tilloy@canonical.com> | 2012-12-04 08:34:20 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier.tilloy@canonical.com> | 2012-12-04 08:34:20 +0100 |
commit | af2608a0a41a8d3092035f823257dc2274079a94 (patch) | |
tree | 537955a5dd726a23050e82f06a8b7d3a9ce9c3e0 /tests/client | |
parent | 4b57869f28ed1721a00e3d498c3fb268d1704ac6 (diff) | |
download | qmenumodel-af2608a0a41a8d3092035f823257dc2274079a94.tar.gz qmenumodel-af2608a0a41a8d3092035f823257dc2274079a94.tar.bz2 qmenumodel-af2608a0a41a8d3092035f823257dc2274079a94.zip |
Simplify test code.
Diffstat (limited to 'tests/client')
-rw-r--r-- | tests/client/cachetest.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/client/cachetest.cpp b/tests/client/cachetest.cpp index 245ad9b..bd29dfe 100644 --- a/tests/client/cachetest.cpp +++ b/tests/client/cachetest.cpp @@ -33,10 +33,6 @@ public: MenuModelTestClass() : QMenuModel(0) { - } - - void loadMenu() - { GMenu *menu3 = g_menu_new(); g_menu_append(menu3, "menu4", NULL); g_menu_append(menu3, "menu5", NULL); @@ -89,7 +85,6 @@ private Q_SLOTS: void testStaticMenuCache() { MenuModelTestClass menu; - menu.loadMenu(); QModelIndex index = menu.index(3); @@ -116,7 +111,6 @@ private Q_SLOTS: void testAddItem() { MenuModelTestClass menu; - menu.loadMenu(); QModelIndex index = menu.index(3); QVariant data = menu.data(index, QMenuModel::LinkSection); @@ -137,7 +131,6 @@ private Q_SLOTS: void testRemoveItem() { MenuModelTestClass menu; - menu.loadMenu(); QModelIndex index = menu.index(3); QVariant data = menu.data(index, QMenuModel::LinkSection); @@ -157,7 +150,6 @@ private Q_SLOTS: void testRemoveCachedItem() { MenuModelTestClass menu; - menu.loadMenu(); QModelIndex index = menu.index(3); QVariant data = menu.data(index, QMenuModel::LinkSection); |