Skip to content

Commit

Permalink
lib,test: remove publicly exposed freelist
Browse files Browse the repository at this point in the history
The freelist module was deprecated in io.js and moved to an
internal module. This commit removes public access to freelist,
while leaving the internal module, which is still in use.

Fixes: #569
PR-URL: #3738
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • Loading branch information
cjihrig committed Nov 11, 2015
1 parent 2930867 commit b70dc67
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
6 changes: 0 additions & 6 deletions lib/freelist.js

This file was deleted.

1 change: 0 additions & 1 deletion node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
'lib/dns.js',
'lib/domain.js',
'lib/events.js',
'lib/freelist.js',
'lib/fs.js',
'lib/http.js',
'lib/_http_agent.js',
Expand Down
4 changes: 1 addition & 3 deletions test/parallel/test-freelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@

require('../common');
const assert = require('assert');
const freelist = require('freelist');
const internalFreelist = require('internal/freelist');
const freelist = require('internal/freelist');

assert.equal(typeof freelist, 'object');
assert.equal(typeof freelist.FreeList, 'function');
assert.strictEqual(freelist, internalFreelist);

const flist1 = new freelist.FreeList('flist1', 3, String);

Expand Down

0 comments on commit b70dc67

Please sign in to comment.