[evince] [libdocument] Remove redundant macro definition



commit d92e01606a301b6f677d85c3b24348f3b51ed2f4
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Fri May 7 13:22:42 2010 +0200

    [libdocument] Remove redundant macro definition
    
    EV_DEFINE_BOXED_TYPE was defined twice!

 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 */



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