From 304bb91238d6909cb5e170f8fc483aa7862558d5 Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 3 Nov 2016 06:10:26 -0700 Subject: Remove FX_BOOL entirely. FX_BOOL was a type just like a regular C++ bool, except that it took 4x the space and frequently was used to hold values besides true or false. Review-Url: https://codereview.chromium.org/2471353002 --- core/fxcrt/fx_system.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'core/fxcrt') diff --git a/core/fxcrt/fx_system.h b/core/fxcrt/fx_system.h index bcddf1aeeb..d3f488a33a 100644 --- a/core/fxcrt/fx_system.h +++ b/core/fxcrt/fx_system.h @@ -65,13 +65,6 @@ #ifdef __cplusplus extern "C" { -typedef bool FX_BOOL; // Deprecated. -#ifndef TRUE -#define TRUE true -#endif -#ifndef FALSE -#define FALSE false -#endif #endif // __cplusplus typedef void* FX_POSITION; // Keep until fxcrt containers gone @@ -90,11 +83,6 @@ typedef wchar_t FX_WCHAR; // Keep, maybe bad platform wchars. // TODO(palmer): it should be a |size_t|, or at least unsigned. typedef int FX_STRSIZE; -#ifdef __cplusplus -static_assert(TRUE == true, "true_needs_to_be_true"); -static_assert(FALSE == false, "false_needs_to_be_false"); -#endif - #ifndef ASSERT #ifndef NDEBUG #define ASSERT assert -- cgit v1.2.3