diff --git a/lib/freelist.js b/lib/freelist.js deleted file mode 100644 index ad33f971ebef5b..00000000000000 --- a/lib/freelist.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -const util = require('internal/util'); - -module.exports = require('internal/freelist'); -util.printDeprecationMessage('freelist module is deprecated.'); diff --git a/node.gyp b/node.gyp index 0e8fd576f0735a..7a8c29b6fd8476 100644 --- a/node.gyp +++ b/node.gyp @@ -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', diff --git a/test/parallel/test-freelist.js b/test/parallel/test-freelist.js index 4f95a3d9b5622f..270ff4ec00cd2c 100644 --- a/test/parallel/test-freelist.js +++ b/test/parallel/test-freelist.js @@ -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);