Remove some dead code.
authorLei Zhang <thestig@chromium.org>
Mon, 15 Jun 2015 18:45:48 +0000 (11:45 -0700)
committerLei Zhang <thestig@chromium.org>
Mon, 15 Jun 2015 18:45:48 +0000 (11:45 -0700)
Review URL: https://codereview.chromium.org/1186673005.

fpdfsdk/src/fsdk_baseform.cpp
fpdfsdk/src/javascript/PublicMethods.cpp

index 59431ec..f58bfd8 100644 (file)
@@ -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)
 {
index bfd6935..a615d44 100644 (file)
@@ -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"