[gnome-applets] cpufreq: remove cpufreq_selector_factory_create_selector
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] cpufreq: remove cpufreq_selector_factory_create_selector
- Date: Tue, 6 Dec 2016 20:28:12 +0000 (UTC)
commit 824eed606afbc4ec2632ba042bd9b5282c51c4b4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Dec 6 19:56:16 2016 +0200
cpufreq: remove cpufreq_selector_factory_create_selector
cpufreq/src/cpufreq-selector/Makefile.am | 1 -
.../cpufreq-selector/cpufreq-selector-factory.c | 34 --------------------
.../cpufreq-selector/cpufreq-selector-factory.h | 30 -----------------
.../cpufreq-selector/cpufreq-selector-service.c | 4 +-
cpufreq/src/cpufreq-selector/main.c | 5 +--
5 files changed, 4 insertions(+), 70 deletions(-)
---
diff --git a/cpufreq/src/cpufreq-selector/Makefile.am b/cpufreq/src/cpufreq-selector/Makefile.am
index b702416..3e5611a 100644
--- a/cpufreq/src/cpufreq-selector/Makefile.am
+++ b/cpufreq/src/cpufreq-selector/Makefile.am
@@ -29,7 +29,6 @@ cpufreq_selector_SOURCES = \
cpufreq-selector.c cpufreq-selector.h \
cpufreq-selector-libcpufreq.c cpufreq-selector-libcpufreq.h \
$(service_files) \
- cpufreq-selector-factory.c cpufreq-selector-factory.h \
$(BUILT_SOURCES) \
main.c
diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
b/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
index 6cf3457..a20a436 100644
--- a/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
+++ b/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c
@@ -20,7 +20,7 @@
#include <dbus/dbus-glib-lowlevel.h>
#include "cpufreq-selector.h"
-#include "cpufreq-selector-factory.h"
+#include "cpufreq-selector-libcpufreq.h"
#include "cpufreq-selector-service.h"
#include "cpufreq-selector-service-glue.h"
@@ -252,7 +252,7 @@ get_selector_for_cpu (CPUFreqSelectorService *service,
guint cpu)
{
if (!service->selectors[cpu]) {
- service->selectors[cpu] = cpufreq_selector_factory_create_selector (cpu);
+ service->selectors[cpu] = cpufreq_selector_libcpufreq_new (cpu);
if (!service->selectors[cpu])
return NULL;
diff --git a/cpufreq/src/cpufreq-selector/main.c b/cpufreq/src/cpufreq-selector/main.c
index 7f91868..8c1d0d0 100644
--- a/cpufreq/src/cpufreq-selector/main.c
+++ b/cpufreq/src/cpufreq-selector/main.c
@@ -28,8 +28,7 @@
#ifdef HAVE_POLKIT
#include "cpufreq-selector-service.h"
#endif
-#include "cpufreq-selector-factory.h"
-
+#include "cpufreq-selector-libcpufreq.h"
static gint cpu = 0;
static gchar *governor = NULL;
@@ -128,7 +127,7 @@ cpufreq_selector_set_values (void)
CPUFreqSelector *selector;
GError *error = NULL;
- selector = cpufreq_selector_factory_create_selector (cpu);
+ selector = cpufreq_selector_libcpufreq_new (cpu);
if (!selector) {
g_printerr ("No cpufreq support\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]