[mutter/wip/nielsdg/cleanup-cogl-util: 3/5] cogl: Remove unused _COGL_TYPEDEF_ASSERT() macro
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/nielsdg/cleanup-cogl-util: 3/5] cogl: Remove unused _COGL_TYPEDEF_ASSERT() macro
- Date: Wed, 19 Jun 2019 18:56:03 +0000 (UTC)
commit ed44036c515738003ac35eebffc0c26c0eb2c7a8
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`.
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]