diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-10 15:20:18 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-14 10:42:55 +0200 |
commit | d10cc97cbb826099530180450052f90b86cdcac8 (patch) | |
tree | 62b17c7c5c73eab6b46ca93a5f05907d695fb16b /src/up-self-test.c | |
parent | c842f1a53ec5f1903bd911e0eee2383b0fc5503a (diff) | |
download | upower-d10cc97cbb826099530180450052f90b86cdcac8.tar.gz |
Remove QoS interface
It was added for some workloads, but ill-suited and never really
got traction. Using cgroups to manage the resources of particular
services (using systemd), or something separate like rtkit is
a better bet.
Diffstat (limited to 'src/up-self-test.c')
-rw-r--r-- | src/up-self-test.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/up-self-test.c b/src/up-self-test.c index 1a0595d..ecf1ff9 100644 --- a/src/up-self-test.c +++ b/src/up-self-test.c @@ -33,7 +33,6 @@ #include "up-history.h" #include "up-native.h" #include "up-polkit.h" -#include "up-qos.h" #include "up-wakeups.h" gchar *history_dir = NULL; @@ -301,24 +300,6 @@ up_test_polkit_func (void) } static void -up_test_qos_func (void) -{ - UpQos *qos; - - /* needs polkit, which only listens to the system bus */ - if (!g_file_test (DBUS_SYSTEM_SOCKET, G_FILE_TEST_EXISTS)) { - puts("No system D-BUS running, skipping test"); - return; - } - - qos = up_qos_new (); - g_assert (qos != NULL); - - /* unref */ - g_object_unref (qos); -} - -static void up_test_wakeups_func (void) { UpWakeups *wakeups; @@ -351,7 +332,6 @@ main (int argc, char **argv) g_test_add_func ("/power/history", up_test_history_func); g_test_add_func ("/power/native", up_test_native_func); g_test_add_func ("/power/polkit", up_test_polkit_func); - g_test_add_func ("/power/qos", up_test_qos_func); g_test_add_func ("/power/wakeups", up_test_wakeups_func); g_test_add_func ("/power/daemon", up_test_daemon_func); |