summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_system.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-03 06:10:26 -0700
committerCommit bot <commit-bot@chromium.org>2016-11-03 06:10:26 -0700
commit304bb91238d6909cb5e170f8fc483aa7862558d5 (patch)
tree5183cddcd2bf05354c5cb424e18f57eb56780dea /core/fxcrt/fx_system.h
parentd19e912dd469e4bdad9f3020e1f6eb98f10f3470 (diff)
downloadpdfium-304bb91238d6909cb5e170f8fc483aa7862558d5.tar.xz
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
Diffstat (limited to 'core/fxcrt/fx_system.h')
-rw-r--r--core/fxcrt/fx_system.h12
1 files changed, 0 insertions, 12 deletions
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