mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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
This commit is contained in:
parent
79e22853ea
commit
a2a114e79c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user