From 354f7b0e259173a007ec055bed6aab535a3b6d13 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 15 Feb 2011 14:46:20 +0000 Subject: [PATCH] backend: Remove usage of CLUTTER_STAGE_TYPE It's only used for debugging purposes, and it's of limited usage since the stage creation is deferred to the backend implementation itself. --- clutter/clutter-backend.c | 1 + clutter/egl/clutter-backend-egl.c | 4 ---- clutter/glx/clutter-backend-glx.c | 4 ---- clutter/wayland/clutter-backend-wayland.c | 4 ---- clutter/win32/clutter-backend-win32.c | 4 ---- 5 files changed, 1 insertion(+), 16 deletions(-) diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c index b677f41ed..0259e38e6 100644 --- a/clutter/clutter-backend.c +++ b/clutter/clutter-backend.c @@ -50,6 +50,7 @@ #include "clutter-profile.h" #include "clutter-stage-manager-private.h" #include "clutter-stage-private.h" +#include "clutter-version.h" #include diff --git a/clutter/egl/clutter-backend-egl.c b/clutter/egl/clutter-backend-egl.c index 4c4a85d1b..649ac59b6 100644 --- a/clutter/egl/clutter-backend-egl.c +++ b/clutter/egl/clutter-backend-egl.c @@ -48,7 +48,6 @@ #include "clutter-private.h" #include "clutter-main.h" #include "clutter-stage-private.h" -#include "clutter-version.h" static ClutterBackendEGL *backend_singleton = NULL; @@ -744,9 +743,6 @@ clutter_backend_egl_create_stage (ClutterBackend *backend, ClutterStageWindow *stage; ClutterStageX11 *stage_x11; - CLUTTER_NOTE (BACKEND, "Creating stage of type '%s'", - g_type_name (CLUTTER_STAGE_TYPE)); - stage = g_object_new (CLUTTER_TYPE_STAGE_EGL, NULL); /* copy backend data into the stage */ diff --git a/clutter/glx/clutter-backend-glx.c b/clutter/glx/clutter-backend-glx.c index 95f46ad2d..064a3d881 100644 --- a/clutter/glx/clutter-backend-glx.c +++ b/clutter/glx/clutter-backend-glx.c @@ -47,7 +47,6 @@ #include "clutter-main.h" #include "clutter-private.h" #include "clutter-stage-private.h" -#include "clutter-version.h" #include "cogl/cogl.h" @@ -788,9 +787,6 @@ clutter_backend_glx_create_stage (ClutterBackend *backend, ClutterStageWindow *stage_window; ClutterStageX11 *stage_x11; - CLUTTER_NOTE (BACKEND, "Creating stage of type '%s'", - g_type_name (CLUTTER_STAGE_TYPE)); - stage_window = g_object_new (CLUTTER_TYPE_STAGE_GLX, NULL); /* copy backend data into the stage */ diff --git a/clutter/wayland/clutter-backend-wayland.c b/clutter/wayland/clutter-backend-wayland.c index 794cecad2..5d029bd58 100644 --- a/clutter/wayland/clutter-backend-wayland.c +++ b/clutter/wayland/clutter-backend-wayland.c @@ -47,7 +47,6 @@ #include "clutter-main.h" #include "clutter-private.h" #include "clutter-stage-private.h" -#include "clutter-version.h" static ClutterBackendWayland *backend_singleton = NULL; @@ -622,9 +621,6 @@ clutter_backend_wayland_create_stage (ClutterBackend *backend, ClutterStageWindow *stage; ClutterStageWayland *stage_wayland; - CLUTTER_NOTE (BACKEND, "Creating stage of type '%s'", - g_type_name (CLUTTER_STAGE_TYPE)); - stage = g_object_new (CLUTTER_TYPE_STAGE_WAYLAND, NULL); stage_wayland = CLUTTER_STAGE_WAYLAND (stage); diff --git a/clutter/win32/clutter-backend-win32.c b/clutter/win32/clutter-backend-win32.c index 4ab3f2709..c20516925 100644 --- a/clutter/win32/clutter-backend-win32.c +++ b/clutter/win32/clutter-backend-win32.c @@ -36,7 +36,6 @@ #include "clutter-debug.h" #include "clutter-private.h" #include "clutter-stage-private.h" -#include "clutter-version.h" #include "cogl/cogl.h" @@ -487,9 +486,6 @@ clutter_backend_win32_create_stage (ClutterBackend *backend, ClutterStageWin32 *stage_win32; ClutterStageWindow *stage; - CLUTTER_NOTE (BACKEND, "Creating stage of type '%s'", - g_type_name (CLUTTER_STAGE_TYPE)); - stage = g_object_new (CLUTTER_TYPE_STAGE_WIN32, NULL); /* copy backend data into the stage */