summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fsdk_baseform.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-19 16:48:22 -0700
committerLei Zhang <thestig@chromium.org>2015-06-19 16:48:22 -0700
commit1eb69422e2f35a32ed7d12a330fb2505f8a97f3c (patch)
treedf77e3889d604eb05a35a6d7227a90178c41239a /fpdfsdk/src/fsdk_baseform.cpp
parent51915328af0b5a7a45f547e1e42b232489a1d3fa (diff)
downloadpdfium-1eb69422e2f35a32ed7d12a330fb2505f8a97f3c.tar.xz
Merge to XFA: Remove some dead code.
Review URL: https://codereview.chromium.org/1186673005. (cherry picked from commit 38f5c338fdc2daf79668cf7567298d9f62e4ba23) Review URL: https://codereview.chromium.org/1198683002.
Diffstat (limited to 'fpdfsdk/src/fsdk_baseform.cpp')
-rw-r--r--fpdfsdk/src/fsdk_baseform.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp
index 3e5e563126..262e5f8c7b 100644
--- a/fpdfsdk/src/fsdk_baseform.cpp
+++ b/fpdfsdk/src/fsdk_baseform.cpp
@@ -668,19 +668,6 @@ CPDF_FormControl* CPDFSDK_Widget::GetFormControl() const
return pPDFInterForm->GetControlByDict(GetAnnotDict());
}
-static CPDF_Dictionary* BF_GetField(CPDF_Dictionary* pFieldDict, const FX_CHAR* name)
-{
- if (pFieldDict == NULL) return NULL;
- // First check the dictionary itself
- CPDF_Object* pAttr = pFieldDict->GetElementValue(name);
- if (pAttr) return pFieldDict;
-
- // Now we need to search from parents
- CPDF_Dictionary* pParent = pFieldDict->GetDict("Parent");
- if (pParent == NULL) return NULL;
-
- return BF_GetField(pParent, name);
-}
CPDF_FormControl* CPDFSDK_Widget::GetFormControl(CPDF_InterForm* pInterForm, CPDF_Dictionary* pAnnotDict)
{