diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-19 05:53:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-19 05:53:40 -0700 |
commit | 0582ad18b1e7ab9e404b7f8071a015ec756f5afe (patch) | |
tree | 4c0807ec379b17fc4439f6e3183faa881edb291c /xfa/fxjse/value.cpp | |
parent | 86d945b2d24edade9c7175be1c31b246f54b04ca (diff) | |
download | pdfium-0582ad18b1e7ab9e404b7f8071a015ec756f5afe.tar.xz |
XFA unused function cleanup
This CL removes a series of unused XFA methods.
Review URL: https://codereview.chromium.org/1899103002
Diffstat (limited to 'xfa/fxjse/value.cpp')
-rw-r--r-- | xfa/fxjse/value.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/xfa/fxjse/value.cpp b/xfa/fxjse/value.cpp index cd3220a17a..dd07b6cbb8 100644 --- a/xfa/fxjse/value.cpp +++ b/xfa/fxjse/value.cpp @@ -36,11 +36,6 @@ FX_BOOL FXJSE_Value_IsNumber(FXJSE_HVALUE hValue) { return lpValue && lpValue->IsNumber(); } -FX_BOOL FXJSE_Value_IsInteger(FXJSE_HVALUE hValue) { - CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); - return lpValue && lpValue->IsInteger(); -} - FX_BOOL FXJSE_Value_IsObject(FXJSE_HVALUE hValue) { CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); return lpValue && lpValue->IsObject(); @@ -56,11 +51,6 @@ FX_BOOL FXJSE_Value_IsFunction(FXJSE_HVALUE hValue) { return lpValue && lpValue->IsFunction(); } -FX_BOOL FXJSE_Value_IsDate(FXJSE_HVALUE hValue) { - CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); - return lpValue && lpValue->IsDate(); -} - FX_BOOL FXJSE_Value_ToBoolean(FXJSE_HVALUE hValue) { return reinterpret_cast<CFXJSE_Value*>(hValue)->ToBoolean(); } @@ -136,10 +126,6 @@ void FXJSE_Value_SetArray(FXJSE_HVALUE hValue, ->SetArray(uValueCount, reinterpret_cast<CFXJSE_Value**>(rgValues)); } -void FXJSE_Value_SetDate(FXJSE_HVALUE hValue, double dDouble) { - reinterpret_cast<CFXJSE_Value*>(hValue)->SetDate(dDouble); -} - void FXJSE_Value_Set(FXJSE_HVALUE hValue, FXJSE_HVALUE hOriginalValue) { CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); CFXJSE_Value* lpOriginalValue = @@ -175,15 +161,6 @@ FX_BOOL FXJSE_Value_GetObjectPropByIdx(FXJSE_HVALUE hValue, return lpValue->GetObjectProperty(uPropIdx, lpPropValue); } -FX_BOOL FXJSE_Value_SetObjectPropByIdx(FXJSE_HVALUE hValue, - uint32_t uPropIdx, - FXJSE_HVALUE hPropValue) { - CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); - CFXJSE_Value* lpPropValue = reinterpret_cast<CFXJSE_Value*>(hPropValue); - ASSERT(lpValue && lpPropValue); - return lpValue->SetObjectProperty(uPropIdx, lpPropValue); -} - FX_BOOL FXJSE_Value_DeleteObjectProp(FXJSE_HVALUE hValue, const CFX_ByteStringC& szPropName) { return reinterpret_cast<CFXJSE_Value*>(hValue) @@ -216,17 +193,6 @@ FX_BOOL FXJSE_Value_SetFunctionBind(FXJSE_HVALUE hValue, return lpValue->SetFunctionBind(lpOldFunction, lpNewThis); } -FX_BOOL FXJSE_Value_CallFunction(FXJSE_HVALUE hFunction, - FXJSE_HVALUE hThis, - FXJSE_HVALUE hRetValue, - uint32_t nArgCount, - FXJSE_HVALUE* lpArgs) { - CFXJSE_Value* lpThis = reinterpret_cast<CFXJSE_Value*>(hThis); - CFXJSE_Value* lpRetValue = reinterpret_cast<CFXJSE_Value*>(hRetValue); - return reinterpret_cast<CFXJSE_Value*>(hFunction) - ->Call(lpThis, lpRetValue, nArgCount, lpArgs); -} - FXJSE_HVALUE FXJSE_Value_Create(FXJSE_HRUNTIME hRuntime) { return reinterpret_cast<FXJSE_HVALUE>( CFXJSE_Value::Create(reinterpret_cast<v8::Isolate*>(hRuntime))); @@ -237,11 +203,6 @@ void FXJSE_Value_Release(FXJSE_HVALUE hValue) { delete lpValue; } -FXJSE_HRUNTIME FXJSE_Value_GetRuntime(FXJSE_HVALUE hValue) { - return reinterpret_cast<FXJSE_HRUNTIME>( - reinterpret_cast<CFXJSE_Value*>(hValue)->GetIsolate()); -} - void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, const CFX_ByteStringC& utf8Message) { v8::Isolate* pIsolate = v8::Isolate::GetCurrent(); |