summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-23 20:58:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-23 20:58:15 +0000
commitc2454acf57ddba145bff41ceb50b3715936cfb8e (patch)
tree7877e7919ee4b0cccef9f84d6c5b97688719ad4c
parentce0f004523fdc098186bc453a85543c20b0059a7 (diff)
downloadpdfium-c2454acf57ddba145bff41ceb50b3715936cfb8e.tar.xz
Remove CJS_Field::ValueIsOccur()
It is never called. Change-Id: If4dd7854cbcc815f48fa289003acc203f444cc3e Reviewed-on: https://pdfium-review.googlesource.com/c/44530 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--fxjs/cjs_field.cpp10
-rw-r--r--fxjs/cjs_field.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/fxjs/cjs_field.cpp b/fxjs/cjs_field.cpp
index a7366264a5..367671758f 100644
--- a/fxjs/cjs_field.cpp
+++ b/fxjs/cjs_field.cpp
@@ -640,16 +640,6 @@ CPDF_FormField* CJS_Field::GetFirstFormField() const {
return fields.empty() ? nullptr : fields[0];
}
-bool CJS_Field::ValueIsOccur(CPDF_FormField* pFormField,
- WideString csOptLabel) const {
- for (int i = 0, sz = pFormField->CountOptions(); i < sz; i++) {
- if (csOptLabel.Compare(pFormField->GetOptionLabel(i)) == 0)
- return true;
- }
-
- return false;
-}
-
CPDF_FormControl* CJS_Field::GetSmartFieldControl(CPDF_FormField* pFormField) {
if (!pFormField->CountControls() ||
m_nFormControlIndex >= pFormField->CountControls())
diff --git a/fxjs/cjs_field.h b/fxjs/cjs_field.h
index 3d11475994..20d8c95928 100644
--- a/fxjs/cjs_field.h
+++ b/fxjs/cjs_field.h
@@ -357,7 +357,6 @@ class CJS_Field final : public CJS_Object {
std::vector<CPDF_FormField*> GetFormFields() const;
CPDF_FormField* GetFirstFormField() const;
CPDF_FormControl* GetSmartFieldControl(CPDF_FormField* pFormField);
- bool ValueIsOccur(CPDF_FormField* pFormField, WideString csOptLabel) const;
void AddDelay_Int(FIELD_PROP prop, int32_t n);
void AddDelay_Bool(FIELD_PROP prop, bool b);