debug: Remove CLUTTER_MARK
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 18 Nov 2011 17:30:39 +0000 (17:30 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 18 Nov 2011 17:30:39 +0000 (17:30 +0000)
The debug macro is seldom used, and it's a bit lame at that.

clutter/clutter-debug.h
clutter/clutter-main.c
clutter/clutter-texture.c

index a49812c..eb4bd36 100644 (file)
@@ -71,8 +71,6 @@ typedef enum {
           }                                           } G_STMT_END
 #endif
 
-#define CLUTTER_MARK()      CLUTTER_NOTE(MISC, "== mark ==")
-
 #define CLUTTER_GLERR()                         G_STMT_START {  \
         if (clutter_debug_flags & CLUTTER_DEBUG_GL) {           \
           GLenum _err = glGetError (); /* roundtrip */          \
@@ -84,7 +82,6 @@ typedef enum {
 #else /* !CLUTTER_ENABLE_DEBUG */
 
 #define CLUTTER_NOTE(type,...)         G_STMT_START { } G_STMT_END
-#define CLUTTER_MARK()                 G_STMT_START { } G_STMT_END
 #define CLUTTER_GLERR()                G_STMT_START { } G_STMT_END
 #define CLUTTER_HAS_DEBUG(type)        FALSE
 
index 59558a8..90ec414 100644 (file)
@@ -927,8 +927,6 @@ clutter_main (void)
       return;
     }
 
-  CLUTTER_MARK ();
-
   clutter_main_loop_level++;
 
 #ifdef CLUTTER_ENABLE_PROFILE
@@ -955,8 +953,6 @@ clutter_main (void)
 
   clutter_main_loop_level--;
 
-  CLUTTER_MARK ();
-
   if (clutter_main_loop_level == 0)
     CLUTTER_TIMER_STOP (uprof_get_mainloop_context (), mainloop_timer);
 }
index cc1fc3c..d736f8c 100644 (file)
@@ -220,8 +220,6 @@ texture_free_gl_resources (ClutterTexture *texture)
 {
   ClutterTexturePrivate *priv = texture->priv;
 
-  CLUTTER_MARK();
-
   if (priv->material != COGL_INVALID_HANDLE)
     {
       /* We want to keep the layer so that the filter settings will
@@ -243,8 +241,6 @@ clutter_texture_unrealize (ClutterActor *actor)
   if (priv->material == COGL_INVALID_HANDLE)
     return;
 
-  CLUTTER_MARK();
-
   if (priv->fbo_source != NULL)
     {
       /* Free up our fbo handle and texture resources, realize will recreate */
@@ -266,8 +262,6 @@ clutter_texture_realize (ClutterActor *actor)
   texture = CLUTTER_TEXTURE(actor);
   priv = texture->priv;
 
-  CLUTTER_MARK();
-
   if (priv->fbo_source)
     {
       CoglTextureFlags flags = COGL_TEXTURE_NONE;
@@ -2610,8 +2604,6 @@ texture_fbo_free_resources (ClutterTexture *texture)
 
   priv = texture->priv;
 
-  CLUTTER_MARK();
-
   if (priv->fbo_source != NULL)
     {
       /* If we parented the texture then unparent it again so that it