From 6169c37cb94e78d05641a9b7a920912460cd20da Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 9 Oct 2018 18:08:21 +0000 Subject: Remove unused CPDF_Dictionary::IsSignatureDict(). Change-Id: I21320f89cc3d5e487506d6383d11ff688ad6b887 Reviewed-on: https://pdfium-review.googlesource.com/c/43607 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- core/fpdfapi/parser/cpdf_dictionary.cpp | 4 ---- core/fpdfapi/parser/cpdf_dictionary.h | 1 - 2 files changed, 5 deletions(-) diff --git a/core/fpdfapi/parser/cpdf_dictionary.cpp b/core/fpdfapi/parser/cpdf_dictionary.cpp index 585930427c..4357efaff3 100644 --- a/core/fpdfapi/parser/cpdf_dictionary.cpp +++ b/core/fpdfapi/parser/cpdf_dictionary.cpp @@ -194,10 +194,6 @@ bool CPDF_Dictionary::KeyExist(const ByteString& key) const { return pdfium::ContainsKey(m_Map, key); } -bool CPDF_Dictionary::IsSignatureDict() const { - return CPDF_CryptoHandler::IsSignatureDictionary(this); -} - CPDF_Object* CPDF_Dictionary::SetFor(const ByteString& key, std::unique_ptr pObj) { if (!pObj) { diff --git a/core/fpdfapi/parser/cpdf_dictionary.h b/core/fpdfapi/parser/cpdf_dictionary.h index 1876a610a2..7b839975a1 100644 --- a/core/fpdfapi/parser/cpdf_dictionary.h +++ b/core/fpdfapi/parser/cpdf_dictionary.h @@ -65,7 +65,6 @@ class CPDF_Dictionary final : public CPDF_Object { float GetFloatFor(const ByteString& key) const { return GetNumberFor(key); } bool KeyExist(const ByteString& key) const; - bool IsSignatureDict() const; // Set* functions invalidate iterators for the element with the key |key|. // Takes ownership of |pObj|, returns an unowned pointer to it. -- cgit v1.2.3