[clutter/wip/backend-next] cogl/backend: Remove pre/post_parse



commit 3c1ac08481c08bdae24a2cb2a186e1df4a804862
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Fri Nov 4 16:41:52 2011 +0000

    cogl/backend: Remove pre/post_parse
    
    The CLUTTER_VBLANK environment variable is now handled in the common
    code path.

 clutter/cogl/clutter-backend-cogl.c |   38 -----------------------------------
 1 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/clutter/cogl/clutter-backend-cogl.c b/clutter/cogl/clutter-backend-cogl.c
index 1e03383..31d0552 100644
--- a/clutter/cogl/clutter-backend-cogl.c
+++ b/clutter/cogl/clutter-backend-cogl.c
@@ -46,42 +46,8 @@
 
 static ClutterBackendCogl *backend_singleton = NULL;
 
-static gchar *clutter_vblank = NULL;
-
 G_DEFINE_TYPE (ClutterBackendCogl, _clutter_backend_cogl, CLUTTER_TYPE_BACKEND);
 
-const gchar*
-_clutter_backend_cogl_get_vblank (void)
-{
-  if (clutter_vblank && strcmp (clutter_vblank, "0") == 0)
-    return "none";
-  else
-    return clutter_vblank;
-}
-
-static gboolean
-clutter_backend_cogl_pre_parse (ClutterBackend  *backend,
-                                GError         **error)
-{
-  const gchar *env_string;
-
-  env_string = g_getenv ("CLUTTER_VBLANK");
-  if (env_string)
-    {
-      clutter_vblank = g_strdup (env_string);
-      env_string = NULL;
-    }
-
-  return TRUE;
-}
-
-static gboolean
-clutter_backend_cogl_post_parse (ClutterBackend  *backend,
-                                 GError         **error)
-{
-  return TRUE;
-}
-
 static void
 clutter_backend_cogl_finalize (GObject *gobject)
 {
@@ -133,14 +99,10 @@ static void
 _clutter_backend_cogl_class_init (ClutterBackendCoglClass *klass)
 {
   GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
-  ClutterBackendClass *backend_class = CLUTTER_BACKEND_CLASS (klass);
 
   gobject_class->constructor = clutter_backend_cogl_constructor;
   gobject_class->dispose = clutter_backend_cogl_dispose;
   gobject_class->finalize = clutter_backend_cogl_finalize;
-
-  backend_class->pre_parse = clutter_backend_cogl_pre_parse;
-  backend_class->post_parse = clutter_backend_cogl_post_parse;
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]