[Pkg-javascript-commits] [node-sha.js] 142/237: sha: remove unused POOL

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:03:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-sha.js.

commit 02999896280b859d5526820716c737ecbc46d0f6
Author: Daniel Cousens <github at dcousens.com>
Date:   Fri Sep 5 14:04:01 2014 +1000

    sha: remove unused POOL
---
 sha256.js | 4 ----
 sha512.js | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/sha256.js b/sha256.js
index b3c2b16..053355f 100644
--- a/sha256.js
+++ b/sha256.js
@@ -31,7 +31,6 @@ module.exports = function (Buffer, Hash) {
     ]
 
   var W = new Array(64)
-  var POOL = []
 
   function Sha256() {
     this.init()
@@ -129,9 +128,6 @@ module.exports = function (Buffer, Hash) {
   };
 
   Sha256.prototype._hash = function () {
-    if(POOL.length < 10)
-      POOL.push(this)
-
     var H = new Buffer(32)
 
     H.writeInt32BE(this._a,  0)
diff --git a/sha512.js b/sha512.js
index 02328af..1fca318 100644
--- a/sha512.js
+++ b/sha512.js
@@ -44,7 +44,6 @@ module.exports = function (Buffer, Hash) {
     0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817
   ]
 
-  var POOL = []
   var W = new Array(160)
 
   function Sha512() {
@@ -221,9 +220,6 @@ module.exports = function (Buffer, Hash) {
   }
 
   Sha512.prototype._hash = function () {
-    if (POOL.length < 10)
-      POOL.push(this)
-
     var H = new Buffer(64)
 
     function writeInt64BE(h, l, offset) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git



More information about the Pkg-javascript-commits mailing list