[mutter/wip/nielsdg/cleanup-cogl-util: 3/5] cogl: Remove unused _COGL_TYPEDEF_ASSERT() macro



commit a2a114e79c382040a1ce381355bbbc091bd408dc
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Mon Jun 17 23:32:08 2019 +0200

    cogl: Remove unused _COGL_TYPEDEF_ASSERT() macro
    
    We can safely remove it since it's used nowhere in the code base. If you
    would still like to use someting similar, there's `G_STATIC_ASSERT`.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/629

 cogl/cogl/cogl-util.h | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/cogl/cogl/cogl-util.h b/cogl/cogl/cogl-util.h
index 295800f67..8fafec250 100644
--- a/cogl/cogl/cogl-util.h
+++ b/cogl/cogl/cogl-util.h
@@ -141,14 +141,6 @@ _cogl_util_pixel_format_from_masks (unsigned long r_mask,
                                     int depth, int bpp,
                                     int byte_order);
 
-/* Since we can't rely on _Static_assert always being available for
- * all compilers we have limited static assert that can be used in
- * C code but not in headers.
- */
-#define _COGL_TYPEDEF_ASSERT(EXPRESSION) \
-  typedef struct { char Compile_Time_Assertion[(EXPRESSION) ? 1 : -1]; } \
-  G_PASTE (_GStaticAssert_, __LINE__)
-
 /* _COGL_STATIC_ASSERT:
  * @expression: An expression to assert evaluates to true at compile
  *              time.


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