summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-12-04 05:11:14 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-12-07 05:40:44 +0100
commitcbf0e5a1f4c9d7c0fa6882561faa74ccce5f4932 (patch)
treeadc7d99209ab3ebba2fb9a4728925592839f6f4f /src/node_crypto.h
parent59b46a42f45402864a285fda5b959e20d574d6b8 (diff)
downloadandroid-node-v8-cbf0e5a1f4c9d7c0fa6882561faa74ccce5f4932.tar.gz
android-node-v8-cbf0e5a1f4c9d7c0fa6882561faa74ccce5f4932.tar.bz2
android-node-v8-cbf0e5a1f4c9d7c0fa6882561faa74ccce5f4932.zip
src: remove finalized_ member from Hash class
This commit removes the finalized_ member from the Hash class as it does not seem to be used in any valuable way. Commit c75f87cc4c8 ("crypto: refactor the crypto module") removed the check where it was previously used. PR-URL: https://github.com/nodejs/node/pull/24822 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 5f98af754e..0ee45cf9ea 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -476,14 +476,12 @@ class Hash : public BaseObject {
Hash(Environment* env, v8::Local<v8::Object> wrap)
: BaseObject(env, wrap),
- mdctx_(nullptr),
- finalized_(false) {
+ mdctx_(nullptr) {
MakeWeak();
}
private:
EVPMDPointer mdctx_;
- bool finalized_;
};
class SignBase : public BaseObject {