From d10cc97cbb826099530180450052f90b86cdcac8 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 10 Oct 2013 15:20:18 +0200 Subject: 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. --- src/up-self-test.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/up-self-test.c') 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; @@ -300,24 +299,6 @@ up_test_polkit_func (void) g_object_unref (polkit); } -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) { @@ -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); -- cgit v1.2.1