From fb2a824f87f7096382681fd258906823ef93ebec Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 1 Jun 2016 16:10:41 -0700 Subject: Don't use array for only one compatible mode script Also, don't invent an enum that has one possible value that is always set. Review-Url: https://codereview.chromium.org/2028343002 --- xfa/fxjse/include/fxjse.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'xfa/fxjse/include') diff --git a/xfa/fxjse/include/fxjse.h b/xfa/fxjse/include/fxjse.h index ab95a6d675..8a34ad0c7b 100644 --- a/xfa/fxjse/include/fxjse.h +++ b/xfa/fxjse/include/fxjse.h @@ -36,11 +36,6 @@ enum FXJSE_ClassPropTypes { FXJSE_ClassPropType_Method }; -enum FXJSE_CompatibleModeFlags { - FXJSE_COMPATIBLEMODEFLAG_CONSTRUCTOREXTRAMETHODS = (1 << 0), - FXJSE_COMPATIBLEMODEFLAGCOUNT = 1, -}; - struct FXJSE_FUNCTION_DESCRIPTOR { const FX_CHAR* name; FXJSE_FuncCallback callbackProc; @@ -78,9 +73,7 @@ CFXJSE_Context* FXJSE_Context_Create( CFXJSE_HostObject* lpGlobalObject); void FXJSE_Context_Release(CFXJSE_Context* pContext); CFXJSE_Value* FXJSE_Context_GetGlobalObject(CFXJSE_Context* pContext); - -void FXJSE_Context_EnableCompatibleMode(CFXJSE_Context* pContext, - uint32_t dwCompatibleFlags); +void FXJSE_Context_EnableCompatibleMode(CFXJSE_Context* pContext); CFXJSE_Class* FXJSE_DefineClass(CFXJSE_Context* pContext, const FXJSE_CLASS_DESCRIPTOR* lpClass); -- cgit v1.2.3