From dfefa9b2c99e0588bf229e2b92d85c88e5f18a41 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 26 Feb 2016 11:49:46 -0800 Subject: Replace or remove _FX control-flow defines They buy us nothing and obfuscate the logic. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1740223002 . --- xfa/include/fxgraphics/fx_graphics.h | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'xfa/include') diff --git a/xfa/include/fxgraphics/fx_graphics.h b/xfa/include/fxgraphics/fx_graphics.h index a770c48051..51acdcea48 100644 --- a/xfa/include/fxgraphics/fx_graphics.h +++ b/xfa/include/fxgraphics/fx_graphics.h @@ -17,36 +17,6 @@ typedef int FX_ERR; #define FX_ERR_Intermediate_Value_Invalid -300 #define FX_ERR_Method_Not_Supported -400 #define FX_ERR_Out_Of_Memory -500 -#define _FX_RETURN_IF_FAIL(arg) \ - { \ - if (!(arg)) \ - return; \ - } -#define _FX_RETURN_VALUE_IF_FAIL(arg, val) \ - { \ - if (!(arg)) \ - return val; \ - } -#define _FX_GOTO_POSITION_IF_FAIL(arg, pos) \ - { \ - if (!(arg)) \ - goto pos; \ - } -#define _FX_ERR_CHECK_RETURN_IF_FAIL(arg) \ - { \ - if ((arg) != FX_ERR_Succeeded) \ - return; \ - } -#define _FX_ERR_CHECK_RETURN_VALUE_IF_FAIL(arg, val) \ - { \ - if ((arg) != FX_ERR_Succeeded) \ - return val; \ - } -#define _FX_ERR_CHECK_GOTO_POSITION_IF_FAIL(arg, pos) \ - { \ - if ((arg) != FX_ERR_Succeeded) \ - goto pos; \ - } #define FX_SHADING_Steps 256 typedef int32_t FX_DashStyle; -- cgit v1.2.3