summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_interform.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-20 19:01:20 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-20 19:01:20 +0000
commit4a14a8d6cb4775383eca5daabac26d6e9ad99747 (patch)
tree2df7bd0e636fb2b80d49c599924c96d6a892d4e1 /core/fpdfdoc/cpdf_interform.h
parent79d8cfb7848c05bc34c2c0a10276c9919a9b4e96 (diff)
downloadpdfium-4a14a8d6cb4775383eca5daabac26d6e9ad99747.tar.xz
Simplify CPDF_InterForm::GenerateNewResourceName().
It only has one caller, so remove all the checks that will never be true for this caller. Also make it an anonymous function. Change-Id: I06e6a04e2f6b8741b6beb83534502a626564b592 Reviewed-on: https://pdfium-review.googlesource.com/37410 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_interform.h')
-rw-r--r--core/fpdfdoc/cpdf_interform.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/fpdfdoc/cpdf_interform.h b/core/fpdfdoc/cpdf_interform.h
index c5da15d48a..97d8ac1e72 100644
--- a/core/fpdfdoc/cpdf_interform.h
+++ b/core/fpdfdoc/cpdf_interform.h
@@ -39,10 +39,6 @@ class CPDF_InterForm {
static void SetUpdateAP(bool bUpdateAP);
static bool IsUpdateAPEnabled();
- static ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict,
- const char* csType,
- int iMinLen,
- const char* csPrefix);
static CPDF_Font* AddStandardFont(CPDF_Document* pDocument,
ByteString csFontName);
static ByteString GetNativeFont(uint8_t iCharSet, void* pLogFont);