From d9e316e3538c0c0891f04bbfd0e211749ba15b5d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 19 Apr 2018 22:36:48 -0400 Subject: common_funcs: Remove ARRAY_SIZE macro C++17 has non-member size() which we can just call where necessary. --- src/common/common_funcs.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/common/common_funcs.h') diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 6f0604958..19a33cb57 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h @@ -9,8 +9,6 @@ #endif #include "common/common_types.h" -#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) - /// Textually concatenates two tokens. The double-expansion is required by the C preprocessor. #define CONCAT2(x, y) DO_CONCAT2(x, y) #define DO_CONCAT2(x, y) x##y -- cgit v1.2.3