[gnome-flashback] backends: remove few unused things
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] backends: remove few unused things
- Date: Tue, 7 Jul 2020 18:36:10 +0000 (UTC)
commit 94f2affb86c79f14e41cfdb97c6f94b056b2ba27
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Jul 7 20:30:20 2020 +0300
backends: remove few unused things
backends/Makefile.am | 6 --
backends/gf-backend-native-private.h | 39 ---------
backends/gf-backend-native.c | 67 ---------------
backends/gf-backend-x11-nested-private.h | 35 --------
backends/gf-backend-x11-nested.c | 66 ---------------
backends/gf-backend.c | 18 -----
backends/gf-backend.h | 4 +-
backends/gf-monitor-manager-dummy-private.h | 38 ---------
backends/gf-monitor-manager-dummy.c | 121 ----------------------------
9 files changed, 1 insertion(+), 393 deletions(-)
---
diff --git a/backends/Makefile.am b/backends/Makefile.am
index 1915695..db26527 100644
--- a/backends/Makefile.am
+++ b/backends/Makefile.am
@@ -18,13 +18,9 @@ libbackends_la_CFLAGS = \
$(NULL)
libbackends_la_SOURCES = \
- gf-backend-native-private.h \
- gf-backend-native.c \
gf-backend-private.h \
gf-backend-x11-cm-private.h \
gf-backend-x11-cm.c \
- gf-backend-x11-nested-private.h \
- gf-backend-x11-nested.c \
gf-backend-x11-private.h \
gf-backend-x11.c \
gf-backend.c \
@@ -54,8 +50,6 @@ libbackends_la_SOURCES = \
gf-monitor-config-store-private.h \
gf-monitor-config-store.c \
gf-monitor-config.c \
- gf-monitor-manager-dummy-private.h \
- gf-monitor-manager-dummy.c \
gf-monitor-manager-enums-private.h \
gf-monitor-manager-kms-private.h \
gf-monitor-manager-kms.c \
diff --git a/backends/gf-backend.c b/backends/gf-backend.c
index 81bfeb3..1b930f3 100644
--- a/backends/gf-backend.c
+++ b/backends/gf-backend.c
@@ -27,10 +27,7 @@
#include <gio/gio.h>
-#include "gf-backend-native-private.h"
#include "gf-backend-x11-cm-private.h"
-#include "gf-backend-x11-nested-private.h"
-#include "gf-monitor-manager-dummy-private.h"
#include "gf-orientation-manager-private.h"
#include "gf-settings-private.h"
@@ -54,13 +51,6 @@ static GfMonitorManager *
create_monitor_manager (GfBackend *backend,
GError **error)
{
- if (g_getenv ("DUMMY_MONITORS"))
- {
- return g_object_new (GF_TYPE_MONITOR_MANAGER_DUMMY,
- "backend", backend,
- NULL);
- }
-
return GF_BACKEND_GET_CLASS (backend)->create_monitor_manager (backend, error);
}
@@ -148,14 +138,6 @@ gf_backend_new (GfBackendType type)
gtype = GF_TYPE_BACKEND_X11_CM;
break;
- case GF_BACKEND_TYPE_X11_NESTED:
- gtype = GF_TYPE_BACKEND_X11_NESTED;
- break;
-
- case GF_BACKEND_TYPE_NATIVE:
- gtype = GF_TYPE_BACKEND_NATIVE;
- break;
-
default:
g_assert_not_reached ();
break;
diff --git a/backends/gf-backend.h b/backends/gf-backend.h
index c4d0060..469521a 100644
--- a/backends/gf-backend.h
+++ b/backends/gf-backend.h
@@ -35,9 +35,7 @@ G_DECLARE_DERIVABLE_TYPE (GfBackend, gf_backend, GF, BACKEND, GObject)
typedef enum
{
- GF_BACKEND_TYPE_X11_CM,
- GF_BACKEND_TYPE_X11_NESTED,
- GF_BACKEND_TYPE_NATIVE
+ GF_BACKEND_TYPE_X11_CM
} GfBackendType;
GfBackend *gf_backend_new (GfBackendType type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]