Index: fpdfsdk/include/javascript/JS_Define.h |
diff --git a/fpdfsdk/include/javascript/JS_Define.h b/fpdfsdk/include/javascript/JS_Define.h |
index 90bce29ebb5922cf706faf1da54bc59e7634b9f4..6496cbd9e4ab78cefb12bf6628dc444cd7ace76c 100644 |
--- a/fpdfsdk/include/javascript/JS_Define.h |
+++ b/fpdfsdk/include/javascript/JS_Define.h |
@@ -203,9 +203,6 @@ JS_STATIC_PROP_SET(prop_name, class_name) |
static JSBool JSConstructor(IFXJS_Context* cc, JSFXObject obj,JSFXObject global);\ |
static JSBool JSDestructor(JSFXObject obj);\ |
static int Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType);\ |
- static void GetConsts(JSConstSpec*& pConsts, int& nSize);\ |
- static void GetProperties(JSPropertySpec*& pProperties, int& nSize);\ |
- static void GetMethods(JSMethodSpec*& pMethods, int& nSize);\ |
static JSConstSpec JS_Class_Consts[];\ |
static JSPropertySpec JS_Class_Properties[];\ |
static JSMethodSpec JS_Class_Methods[];\ |
@@ -248,21 +245,6 @@ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ |
}\ |
return -1;\ |
}\ |
-void js_class_name::GetConsts(JSConstSpec*& pConsts, int& nSize)\ |
-{\ |
- pConsts = JS_Class_Consts;\ |
- nSize = sizeof(JS_Class_Consts) / sizeof(JSConstSpec) - 1;\ |
-}\ |
-void js_class_name::GetProperties(JSPropertySpec*& pProperties, int& nSize)\ |
-{\ |
- pProperties = JS_Class_Properties;\ |
- nSize = sizeof(JS_Class_Properties) / sizeof(JSPropertySpec) - 1;\ |
-}\ |
-void js_class_name::GetMethods(JSMethodSpec*& pMethods, int& nSize)\ |
-{\ |
- pMethods = JS_Class_Methods;\ |
- nSize = sizeof(JS_Class_Methods) / sizeof(JSMethodSpec) - 1;\ |
-} |
#define IMPLEMENT_JS_CLASS(js_class_name, class_name) IMPLEMENT_JS_CLASS_RICH(js_class_name, class_name, class_name) |
@@ -270,7 +252,6 @@ void js_class_name::GetMethods(JSMethodSpec*& pMethods, int& nSize)\ |
#define DECLARE_JS_CLASS_CONST() \ |
static int Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType);\ |
- static void GetConsts(JSConstSpec*& pConsts, int& nSize);\ |
static JSConstSpec JS_Class_Consts[];\ |
static const wchar_t* m_pClassName |
@@ -295,11 +276,6 @@ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ |
return nObjDefnID;\ |
}\ |
return -1;\ |
-}\ |
-void js_class_name::GetConsts(JSConstSpec*& pConsts, int& nSize)\ |
-{\ |
- pConsts = JS_Class_Consts;\ |
- nSize = sizeof(JS_Class_Consts)/sizeof(JSConstSpec)-1;\ |
} |
/* ===================================== SPECIAL JS CLASS =============================================== */ |
@@ -307,9 +283,6 @@ void js_class_name::GetConsts(JSConstSpec*& pConsts, int& nSize)\ |
#define DECLARE_SPECIAL_JS_CLASS(js_class_name) \ |
static JSBool JSConstructor(IFXJS_Context* cc, JSFXObject obj, JSFXObject global);\ |
static JSBool JSDestructor(JSFXObject obj);\ |
- static void GetConsts(JSConstSpec*& pConsts, int& nSize);\ |
- static void GetProperties(JSPropertySpec*& pProperties, int& nSize);\ |
- static void GetMethods(JSMethodSpec*& pMethods, int& nSize);\ |
static JSConstSpec JS_Class_Consts[];\ |
static JSPropertySpec JS_Class_Properties[];\ |
static JSMethodSpec JS_Class_Methods[];\ |
@@ -486,21 +459,6 @@ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ |
}\ |
\ |
return -1;\ |
-}\ |
-void js_class_name::GetConsts(JSConstSpec*& pConsts, int& nSize)\ |
-{\ |
- pConsts = JS_Class_Consts;\ |
- nSize = sizeof(JS_Class_Consts)/sizeof(JSConstSpec)-1;\ |
-}\ |
-void js_class_name::GetProperties(JSPropertySpec*& pProperties, int& nSize)\ |
-{\ |
- pProperties = JS_Class_Properties;\ |
- nSize = sizeof(JS_Class_Properties)/sizeof(JSPropertySpec)-1;\ |
-}\ |
-void js_class_name::GetMethods(JSMethodSpec*& pMethods, int& nSize)\ |
-{\ |
- pMethods = JS_Class_Methods;\ |
- nSize = sizeof(JS_Class_Methods)/sizeof(JSMethodSpec)-1;\ |
} |
#define JS_SPECIAL_STATIC_METHOD(method_name, class_alternate, class_name)\ |