diff options
author | Javier Jardón <jjardon@gnome.org> | 2011-04-30 11:02:09 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2011-04-30 12:59:13 +0100 |
commit | f2653e1d45b79613395fbf71452d40a493431a5c (patch) | |
tree | f52ed6696ed20439a566abb41952d51c540b3ade /pango/pango-impl-utils.h | |
parent | b428d5ef171375b7aa1101aaef56ef7a2ceb544e (diff) | |
download | pango-f2653e1d45b79613395fbf71452d40a493431a5c.tar.gz |
Remove unneeded custom macros
Diffstat (limited to 'pango/pango-impl-utils.h')
-rw-r--r-- | 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 6d6c8ff2..da3ef1cb 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) |