diff options
author | Lei Zhang <thestig@chromium.org> | 2015-07-22 13:47:50 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-07-22 13:47:50 -0700 |
commit | d07958fd2d1c4134d865f4ccb056eb925aaa7d2a (patch) | |
tree | f4f24d248f3554b361f233d68847e12e5ce2dc14 /fpdfsdk/include/javascript/JS_Define.h | |
parent | 8a0a834d2aea61fc92590839b86471ac73daa967 (diff) | |
download | pdfium-d07958fd2d1c4134d865f4ccb056eb925aaa7d2a.tar.xz |
Merge to XFA: Remove dead code found by Scythe.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1249643003 .
(cherry picked from commit b05f1fd710496dea44b001bb905fa1c16a39bb28)
Review URL: https://codereview.chromium.org/1250433003 .
Diffstat (limited to 'fpdfsdk/include/javascript/JS_Define.h')
-rw-r--r-- | fpdfsdk/include/javascript/JS_Define.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/include/javascript/JS_Define.h b/fpdfsdk/include/javascript/JS_Define.h index 7ad7f57166..c480ce30c3 100644 --- a/fpdfsdk/include/javascript/JS_Define.h +++ b/fpdfsdk/include/javascript/JS_Define.h @@ -174,7 +174,7 @@ void js_class_name::JSDestructor(JSFXObject obj) \ \ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ {\ - int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, JSConstructor, JSDestructor, 0);\ + int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, JSConstructor, JSDestructor);\ if (nObjDefnID >= 0)\ {\ for (int j=0, szj=sizeof(JS_Class_Properties)/sizeof(JSPropertySpec)-1; j<szj; j++)\ @@ -203,7 +203,7 @@ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ const wchar_t* js_class_name::m_pClassName = JS_WIDESTRING(class_name);\ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ {\ - int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, NULL, NULL, 0);\ + int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, NULL, NULL);\ if (nObjDefnID >=0)\ {\ for (int i=0, sz=sizeof(JS_Class_Consts)/sizeof(JSConstSpec)-1; i<sz; i++)\ @@ -344,7 +344,7 @@ void js_class_name::JSDestructor(JSFXObject obj) \ int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\ {\ \ - int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, JSConstructor, JSDestructor, 0);\ + int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, JSConstructor, JSDestructor);\ \ if (nObjDefnID >= 0)\ {\ |