summaryrefslogtreecommitdiff
path: root/fpdfsdk/src
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-15 11:45:48 -0700
committerLei Zhang <thestig@chromium.org>2015-06-15 11:45:48 -0700
commit38f5c338fdc2daf79668cf7567298d9f62e4ba23 (patch)
tree2a3f7ccee011febb3625c4095bba000cb2e2d26f /fpdfsdk/src
parent8bd09648445aef8a9ae38d9f61618bd2013ac3f0 (diff)
downloadpdfium-38f5c338fdc2daf79668cf7567298d9f62e4ba23.tar.xz
Remove some dead code.
Review URL: https://codereview.chromium.org/1186673005.
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r--fpdfsdk/src/fsdk_baseform.cpp13
-rw-r--r--fpdfsdk/src/javascript/PublicMethods.cpp29
2 files changed, 0 insertions, 42 deletions
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp
index 59431ec13d..f58bfd84f2 100644
--- a/fpdfsdk/src/fsdk_baseform.cpp
+++ b/fpdfsdk/src/fsdk_baseform.cpp
@@ -126,19 +126,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)
{
diff --git a/fpdfsdk/src/javascript/PublicMethods.cpp b/fpdfsdk/src/javascript/PublicMethods.cpp
index bfd6935ce2..a615d4409b 100644
--- a/fpdfsdk/src/javascript/PublicMethods.cpp
+++ b/fpdfsdk/src/javascript/PublicMethods.cpp
@@ -62,35 +62,6 @@ END_JS_STATIC_GLOBAL_FUN()
IMPLEMENT_JS_STATIC_GLOBAL_FUN(CJS_PublicMethods)
-struct stru_TbConvert
-{
- const FX_CHAR* lpszJSMark;
- const FX_CHAR* lpszCppMark;
-};
-
-static const stru_TbConvert fcTable[] = {
- { "mmmm","%B" },
- { "mmm", "%b" },
- { "mm", "%m" },
- //"m"
- { "dddd","%A" },
- { "ddd", "%a" },
- { "dd", "%d" },
- //"d", "%w",
- { "yyyy","%Y" },
- { "yy", "%y" },
- { "HH", "%H" },
- //"H"
- { "hh", "%I" },
- //"h"
- { "MM", "%M" },
- //"M"
- { "ss", "%S" },
- //"s
- { "tt", "%p" },
- //"t"
-};
-
static const FX_WCHAR* months[] =
{
L"Jan", L"Feb", L"Mar", L"Apr", L"May", L"Jun", L"Jul", L"Aug", L"Sep", L"Oct", L"Nov", L"Dec"