From 6051948976b63ffa02a93afc9aaea18d2733a4f9 Mon Sep 17 00:00:00 2001 From: Sune Vuorela Date: Thu, 2 Mar 2023 14:41:48 +0100 Subject: Remove unused static method --- poppler/SignatureHandler.cc | 15 --------------- poppler/SignatureHandler.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc index 70f02e90..b87afa6b 100644 --- a/poppler/SignatureHandler.cc +++ b/poppler/SignatureHandler.cc @@ -513,21 +513,6 @@ unsigned int SignatureHandler::digestLength(HashAlgorithm digestAlgId) } } -HashAlgorithm SignatureHandler::getHashOidTag(const char *digestName) -{ - HashAlgorithm tag = HashAlgorithm::Unknown; - if (strcmp(digestName, "SHA1") == 0) { - tag = HashAlgorithm::Sha1; - } else if (strcmp(digestName, "SHA256") == 0) { - tag = HashAlgorithm::Sha256; - } else if (strcmp(digestName, "SHA384") == 0) { - tag = HashAlgorithm::Sha384; - } else if (strcmp(digestName, "SHA512") == 0) { - tag = HashAlgorithm::Sha512; - } - return tag; -} - std::string SignatureHandler::getSignerName() { char *commonName; diff --git a/poppler/SignatureHandler.h b/poppler/SignatureHandler.h index 94459ed0..074652b4 100644 --- a/poppler/SignatureHandler.h +++ b/poppler/SignatureHandler.h @@ -61,8 +61,6 @@ public: static std::vector> getAvailableSigningCertificates(); std::unique_ptr signDetached(const char *password) const; - static HashAlgorithm getHashOidTag(const char *digestName); - // Initializes the NSS dir with the custom given directory // calling it with an empty string means use the default firefox db, /etc/pki/nssdb, ~/.pki/nssdb // If you don't want a custom NSS dir and the default entries are fine for you, not calling this function is fine -- cgit v1.2.3