diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-20 19:01:20 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-20 19:01:20 +0000 |
commit | 4a14a8d6cb4775383eca5daabac26d6e9ad99747 (patch) | |
tree | 2df7bd0e636fb2b80d49c599924c96d6a892d4e1 /core/fpdfdoc/cpdf_interform.h | |
parent | 79d8cfb7848c05bc34c2c0a10276c9919a9b4e96 (diff) | |
download | pdfium-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.h | 4 |
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); |