Skip to content

Commit c3786bc

Browse files
committed
[x509] Removed unused variable in Sha2 class
1 parent 6b81a44 commit c3786bc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/tools/x509/Sha2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace x509
3030
{
3131

3232
/** @brief Constructor */
33-
Sha2::Sha2(Type type) : m_type(type), m_context(nullptr), m_md(nullptr), m_last_result()
33+
Sha2::Sha2(Type type) : m_context(nullptr), m_md(nullptr), m_last_result()
3434
{
3535
// Allocate computation context
3636
EVP_MD_CTX* ctx = EVP_MD_CTX_new();

src/tools/x509/Sha2.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ class Sha2
8989
std::string resultString() const;
9090

9191
private:
92-
/** @brief Type */
93-
const Type m_type;
9492
/** @brief Computation context */
9593
void* m_context;
9694
/** @brief Hash algorithm */

0 commit comments

Comments
 (0)