Remove unused CFXJSE_Value::SetObjectProperty().
Change-Id: I36dec19abac1ce76369581d844312b191f97e206
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/51351
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/xfa/cfxjse_value.cpp b/fxjs/xfa/cfxjse_value.cpp
index 48bd923..70a5340 100644
--- a/fxjs/xfa/cfxjse_value.cpp
+++ b/fxjs/xfa/cfxjse_value.cpp
@@ -171,21 +171,6 @@
return true;
}
-bool CFXJSE_Value::SetObjectProperty(uint32_t uPropIdx,
- CFXJSE_Value* lpPropValue) {
- CFXJSE_ScopeUtil_IsolateHandleRootContext scope(GetIsolate());
- v8::Local<v8::Value> hObject =
- v8::Local<v8::Value>::New(GetIsolate(), m_hValue);
- if (!hObject->IsObject())
- return false;
-
- v8::Local<v8::Value> hPropValue =
- v8::Local<v8::Value>::New(GetIsolate(), lpPropValue->DirectGetValue());
- return hObject.As<v8::Object>()
- ->Set(GetIsolate()->GetCurrentContext(), uPropIdx, hPropValue)
- .FromJust();
-}
-
bool CFXJSE_Value::GetObjectPropertyByIdx(uint32_t uPropIdx,
CFXJSE_Value* lpPropValue) {
CFXJSE_ScopeUtil_IsolateHandleRootContext scope(GetIsolate());
diff --git a/fxjs/xfa/cfxjse_value.h b/fxjs/xfa/cfxjse_value.h
index 7bd605c..26b8593 100644
--- a/fxjs/xfa/cfxjse_value.h
+++ b/fxjs/xfa/cfxjse_value.h
@@ -59,7 +59,6 @@
bool GetObjectProperty(ByteStringView szPropName, CFXJSE_Value* lpPropValue);
bool SetObjectProperty(ByteStringView szPropName, CFXJSE_Value* lpPropValue);
bool GetObjectPropertyByIdx(uint32_t uPropIdx, CFXJSE_Value* lpPropValue);
- bool SetObjectProperty(uint32_t uPropIdx, CFXJSE_Value* lpPropValue);
bool DeleteObjectProperty(ByteStringView szPropName);
bool HasObjectOwnProperty(ByteStringView szPropName, bool bUseTypeGetter);
bool SetObjectOwnProperty(ByteStringView szPropName,