Skip to content

Commit

Permalink
Remove support for cloning processors
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 13, 2016
1 parent 0074eb7 commit d672875
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function unified(options) {
return new Processor(processor);
}

self.ware = new AttachWare(processor && processor.ware);
self.ware = new AttachWare();
self.ware.context = self;

self.Parser = unherit(Parser);
Expand Down
22 changes: 0 additions & 22 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,6 @@ test('unified()', function (t) {
);
/* eslint-enable new-cap */

st.test('should use the given processor', function (sst) {
var p;
var q;

/**
* Example plugin.
*/
function plugin() {
return noop;
}

p = new Processor().use(plugin);
q = new Processor(p);

sst.deepEqual(p.ware.attachers, [plugin]);
sst.deepEqual(p.ware.fns, [noop]);
sst.deepEqual(q.ware.attachers, [plugin]);
sst.deepEqual(q.ware.fns, [noop]);

sst.end();
});

st.end();
});

Expand Down

0 comments on commit d672875

Please sign in to comment.