[pango] Remove unneeded custom macros



commit f2653e1d45b79613395fbf71452d40a493431a5c
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Apr 30 11:02:09 2011 +0100

    Remove unneeded custom macros

 pango/pango-impl-utils.h |   46 ----------------------------------------------
 1 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/pango/pango-impl-utils.h b/pango/pango-impl-utils.h
index 6d6c8ff..da3ef1c 100644
--- a/pango/pango-impl-utils.h
+++ b/pango/pango-impl-utils.h
@@ -29,52 +29,6 @@
 
 G_BEGIN_DECLS
 
-#define PANGO_DEFINE_TYPE_FULL(name, prefix,				   \
-			       class_init, instance_init,		   \
-			       parent_type, abstract)			   \
-GType									   \
-prefix ## _get_type (void)				                   \
-{									   \
-  static GType object_type = 0;						   \
-									   \
-  if (!object_type)							   \
-    {									   \
-      static const GTypeInfo object_info =				   \
-	{								   \
-	  sizeof (name ## Class),					   \
-	  (GBaseInitFunc) NULL,						   \
-	  (GBaseFinalizeFunc) NULL,					   \
-	  (GClassInitFunc) class_init,					   \
-	  (GClassFinalizeFunc) NULL,					   \
-	  NULL,          /* class_data */				   \
-	  sizeof (name),						   \
-	  0,             /* n_prelocs */				   \
-	  (GInstanceInitFunc) instance_init,				   \
-	  NULL           /* value_table */				   \
-	};								   \
-									   \
-      object_type = g_type_register_static (parent_type,		   \
-					    g_intern_static_string (# name), \
-					    &object_info, abstract);	   \
-    }									   \
-									   \
-  return object_type;							   \
-}
-
-#define PANGO_DEFINE_TYPE(name, prefix,			\
-			  class_init, instance_init,	\
-			  parent_type)			\
- PANGO_DEFINE_TYPE_FULL (name, prefix,			\
-			 class_init, instance_init,	\
-			 parent_type, 0)
-
-#define PANGO_DEFINE_TYPE_ABSTRACT(name, prefix,		\
-			  class_init, instance_init,		\
-			  parent_type)				\
- PANGO_DEFINE_TYPE_FULL (name, prefix,				\
-			 class_init, instance_init,		\
-			 parent_type, G_TYPE_FLAG_ABSTRACT)
-
 
 /* String interning for static strings */
 #define I_(string) g_intern_static_string (string)



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