diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-05-07 11:22:42 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-05-07 11:22:42 (GMT) |
commit | d92e01606a301b6f677d85c3b24348f3b51ed2f4 (patch) | |
tree | 6e15fdd370578001a3d1f2434d755df9952ddd24 /libdocument | |
parent | d76bef42ca0d292a7a04d61663d4da7536136479 (diff) |
[libdocument] Remove redundant macro definition
EV_DEFINE_BOXED_TYPE was defined twice!
Diffstat (limited to 'libdocument')
-rw-r--r-- | libdocument/ev-document.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h index 1064f16..8993808 100644 --- a/libdocument/ev-document.h +++ b/libdocument/ev-document.h @@ -271,25 +271,6 @@ type_name##_get_type (void) return g_define_type_id__volatile; \ } -/* - * A convenience macro for boxed type implementations, which defines a - * type_name_get_type() function registering the boxed type. - */ -#define EV_DEFINE_BOXED_TYPE(TypeName, type_name, copy_func, free_func) \ -GType \ -type_name##_get_type (void) \ -{ \ - static volatile gsize g_define_type_id__volatile = 0; \ - if (g_once_init_enter (&g_define_type_id__volatile)) { \ - GType g_define_type_id = \ - g_boxed_type_register_static (g_intern_static_string (#TypeName), \ - (GBoxedCopyFunc) copy_func, \ - (GBoxedFreeFunc) free_func); \ - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \ - } \ - return g_define_type_id__volatile; \ -} - G_END_DECLS #endif /* EV_DOCUMENT_H */ |