From 2f1ed5c0637a7bdd079136d2cb80f6a4184ae299 Mon Sep 17 00:00:00 2001 From: Tobias Nießen Date: Sat, 30 Mar 2019 11:01:45 +0100 Subject: crypto: remove legacy native handles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/27011 Reviewed-By: Michaël Zasso Reviewed-By: Ben Noordhuis Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Matteo Collina --- lib/internal/crypto/hash.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/internal/crypto/hash.js') diff --git a/lib/internal/crypto/hash.js b/lib/internal/crypto/hash.js index 5e67efe6c5..89ab29d845 100644 --- a/lib/internal/crypto/hash.js +++ b/lib/internal/crypto/hash.js @@ -8,7 +8,6 @@ const { const { getDefaultEncoding, kHandle, - legacyNativeHandle, toBuf } = require('internal/crypto/util'); @@ -89,8 +88,6 @@ Hash.prototype.digest = function digest(outputEncoding) { return ret; }; -legacyNativeHandle(Hash); - function Hmac(hmac, key, options) { if (!(this instanceof Hmac)) @@ -130,8 +127,6 @@ Hmac.prototype.digest = function digest(outputEncoding) { Hmac.prototype._flush = Hash.prototype._flush; Hmac.prototype._transform = Hash.prototype._transform; -legacyNativeHandle(Hmac); - module.exports = { Hash, Hmac -- cgit v1.2.3