[Pkg-javascript-commits] [node-stream-splicer] 66/71: Remove unused vars and deps

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:55:53 UTC 2017


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

rouca pushed a commit to branch master
in repository node-stream-splicer.

commit c047a8a6cf7825dc6269b2dfab80bcb6f9c44389
Author: Andres Suarez <zertosh at gmail.com>
Date:   Sun Aug 23 19:14:46 2015 -0400

    Remove unused vars and deps
---
 index.js              | 5 ++---
 package.json          | 3 +--
 test/nested.js        | 1 -
 test/nested_middle.js | 1 -
 test/push.js          | 1 -
 test/shift.js         | 2 --
 test/unshift.js       | 2 --
 7 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/index.js b/index.js
index efb287f..40e0ed5 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,5 @@
 var Duplex = require('readable-stream').Duplex;
-var Readable = require('readable-stream').Readable;
-var Pass = require('readable-stream').PassThrough;
+var PassThrough = require('readable-stream').PassThrough;
 var inherits = require('inherits');
 var isArray = require('isarray');
 var indexof = require('indexof');
@@ -76,7 +75,7 @@ Pipeline.prototype._write = function (buf, enc, next) {
 Pipeline.prototype._notEmpty = function () {
     var self = this;
     if (this._streams.length > 0) return;
-    var stream = new Pass(this._options);
+    var stream = new PassThrough(this._options);
     stream.once('end', function () {
         var ix = indexof(self._streams, stream);
         if (ix >= 0 && ix === self._streams.length - 1) {
diff --git a/package.json b/package.json
index 2a9111a..97bc489 100644
--- a/package.json
+++ b/package.json
@@ -15,8 +15,7 @@
     "tape": "^2.12.1",
     "JSONStream": "~0.8.2",
     "concat-stream": "^1.4.6",
-    "split": "~0.3.0",
-    "object-keys": "~0.5.1"
+    "split": "~0.3.0"
   },
   "scripts": {
     "test": "tape test/*.js"
diff --git a/test/nested.js b/test/nested.js
index 0f8f5ad..fa293b7 100644
--- a/test/nested.js
+++ b/test/nested.js
@@ -1,6 +1,5 @@
 var pipeline = require('../');
 var through = require('through2');
-var stringify = require('JSONStream').stringify;
 var split = require('split');
 var concat = require('concat-stream');
 var test = require('tape');
diff --git a/test/nested_middle.js b/test/nested_middle.js
index 0988bda..488fa6a 100644
--- a/test/nested_middle.js
+++ b/test/nested_middle.js
@@ -1,6 +1,5 @@
 var pipeline = require('../');
 var through = require('through2');
-var stringify = require('JSONStream').stringify;
 var split = require('split');
 var concat = require('concat-stream');
 var test = require('tape');
diff --git a/test/push.js b/test/push.js
index c3f4c08..acc35e7 100644
--- a/test/push.js
+++ b/test/push.js
@@ -1,7 +1,6 @@
 var pipeline = require('../');
 var through = require('through2');
 var split = require('split');
-var concat = require('concat-stream');
 var test = require('tape');
 
 test('push', function (t) {
diff --git a/test/shift.js b/test/shift.js
index 309e5d1..188f243 100644
--- a/test/shift.js
+++ b/test/shift.js
@@ -1,7 +1,5 @@
 var pipeline = require('../');
 var through = require('through2');
-var split = require('split');
-var concat = require('concat-stream');
 var test = require('tape');
 
 test('shift', function (t) {
diff --git a/test/unshift.js b/test/unshift.js
index 4ec25a7..5fac97d 100644
--- a/test/unshift.js
+++ b/test/unshift.js
@@ -1,7 +1,5 @@
 var pipeline = require('../');
 var through = require('through2');
-var split = require('split');
-var concat = require('concat-stream');
 var test = require('tape');
 
 test('unshift', function (t) {

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



More information about the Pkg-javascript-commits mailing list