--- deliantra/server/include/util.h 2018/11/27 18:47:35 1.128 +++ deliantra/server/include/util.h 2018/12/01 20:22:13 1.129 @@ -57,20 +57,6 @@ # define g_slice_free1(s,p) free ((p)) #endif -// use C0X decltype for auto declarations until ISO C++ sanctifies them (if ever) -#define auto(var,expr) decltype(expr) var = (expr) - -#if cplusplus_does_not_suck /* still sucks in codesize with gcc 6, although local types work now */ -// does not work for local types (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm) -template -static inline int array_length (const T (&arr)[N]) -{ - return N; -} -#else -#define array_length(name) (sizeof (name) / sizeof (name [0])) -#endif - // very ugly macro that basically declares and initialises a variable // that is in scope for the next statement only // works only for stuff that can be assigned 0 and converts to false