mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove js::tl::ArraySize and js::tl::ArrayEnd. They're unused, and mozilla::ArrayLength and mozilla::ArrayEnd supersede them regardless. No bug, r=lumpy
This commit is contained in:
parent
781a43526c
commit
2083d65f42
@ -171,10 +171,6 @@ template <> struct IsPodType<double> { static const bool result =
|
||||
template <> struct IsPodType<wchar_t> { static const bool result = true; };
|
||||
template <typename T> struct IsPodType<T *> { static const bool result = true; };
|
||||
|
||||
/* Return the size/end of an array without using macros. */
|
||||
template <class T, size_t N> inline T *ArraySize(T (&)[N]) { return N; }
|
||||
template <class T, size_t N> inline T *ArrayEnd(T (&arr)[N]) { return arr + N; }
|
||||
|
||||
template <bool cond, typename T, T v1, T v2> struct If { static const T result = v1; };
|
||||
template <typename T, T v1, T v2> struct If<false, T, v1, v2> { static const T result = v2; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user