From c2454acf57ddba145bff41ceb50b3715936cfb8e Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 23 Oct 2018 20:58:15 +0000 Subject: Remove CJS_Field::ValueIsOccur() It is never called. Change-Id: If4dd7854cbcc815f48fa289003acc203f444cc3e Reviewed-on: https://pdfium-review.googlesource.com/c/44530 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fxjs/cjs_field.cpp | 10 ---------- fxjs/cjs_field.h | 1 - 2 files changed, 11 deletions(-) (limited to 'fxjs') 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 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); -- cgit v1.2.3