diff options
-rw-r--r-- | fxjs/cjs_field.cpp | 10 | ||||
-rw-r--r-- | fxjs/cjs_field.h | 1 |
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); |