From b70dc6782862f27f6cecacdc797654ec77142c7b Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 9 Nov 2015 16:38:13 -0500 Subject: [PATCH] lib,test: remove publicly exposed freelist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/issues/569 PR-URL: https://github.com/nodejs/node/pull/3738 Reviewed-By: Ben Noordhuis Reviewed-By: Michaƫl Zasso Reviewed-By: Sakthipriyan Vairamani --- lib/freelist.js | 6 ------ node.gyp | 1 - test/parallel/test-freelist.js | 4 +--- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 lib/freelist.js 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);