@@ -9,11 +9,6 @@ var async = require('async');
9
9
var fs = require ( 'fs' ) ;
10
10
var util = require ( './util' ) ;
11
11
12
- // built-in plugins
13
- var pjson = require ( 'archiver-json' ) ;
14
- var ptar = require ( 'archiver-tar' ) ;
15
- var pzip = require ( 'archiver-zip' ) ;
16
-
17
12
var inherits = require ( 'util' ) . inherits ;
18
13
var Transform = require ( 'readable-stream' ) . Transform ;
19
14
@@ -54,16 +49,6 @@ var Archiver = module.exports = function(format, options) {
54
49
} ;
55
50
56
51
this . _streams = [ ] ;
57
-
58
- if ( format === 'zip' ) {
59
- // this.use(pzip());
60
- } else if ( format === 'tar' ) {
61
- // this.use(ptar());
62
- } else if ( format === 'json' ) {
63
- this . use ( pjson ( ) ) ;
64
- } else {
65
- this . emit ( error , new Error ( 'no format plugin' ) ) ;
66
- }
67
52
} ;
68
53
69
54
inherits ( Archiver , Transform ) ;
@@ -514,7 +499,7 @@ Archiver.prototype.finalize = function() {
514
499
return this ;
515
500
} ;
516
501
517
- // needs to be deprecated
502
+ // needs to be deprecated in 0.16/removed in 0.17
518
503
Archiver . prototype . setFormat = function ( format ) {
519
504
if ( this . _format ) {
520
505
this . emit ( 'error' , new Error ( 'format: archive format already set' ) ) ;
@@ -526,7 +511,7 @@ Archiver.prototype.setFormat = function(format) {
526
511
return this ;
527
512
} ;
528
513
529
- // needs to be deprecated
514
+ // needs to be deprecated in 0.16/removed in 0.17
530
515
Archiver . prototype . setModule = function ( module ) {
531
516
if ( this . _state . aborted ) {
532
517
this . emit ( 'error' , new Error ( 'module: archive was aborted' ) ) ;
0 commit comments