From 84a23391f60c0cbde8f78fd805b6fdef6861285f Mon Sep 17 00:00:00 2001 From: Brian White Date: Wed, 29 Mar 2017 03:44:12 -0400 Subject: [PATCH] linkedlist: remove public module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/12113 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Evan Lucas Reviewed-By: Michaƫl Zasso --- .eslintrc.yaml | 2 +- lib/_linklist.js | 27 ------------------------ node.gyp | 1 - test/parallel/test-timers-linked-list.js | 5 +---- 4 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 lib/_linklist.js diff --git a/.eslintrc.yaml b/.eslintrc.yaml index b7654381b1e8da..4ad11a1ffde0d2 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -62,7 +62,7 @@ rules: no-mixed-requires: 2 no-new-require: 2 no-path-concat: 2 - no-restricted-modules: [2, sys, _linklist] + no-restricted-modules: [2, sys] no-restricted-properties: - 2 - object: assert diff --git a/lib/_linklist.js b/lib/_linklist.js deleted file mode 100644 index 4c1a05e1526e75..00000000000000 --- a/lib/_linklist.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -'use strict'; - -module.exports = require('internal/linkedlist'); -process.emitWarning( - '_linklist module is deprecated. Please use a userland alternative.', - 'DeprecationWarning', 'DEP0002'); diff --git a/node.gyp b/node.gyp index d99653a63cf01e..a50e083162f6f6 100644 --- a/node.gyp +++ b/node.gyp @@ -44,7 +44,6 @@ 'lib/_http_outgoing.js', 'lib/_http_server.js', 'lib/https.js', - 'lib/_linklist.js', 'lib/module.js', 'lib/net.js', 'lib/os.js', diff --git a/test/parallel/test-timers-linked-list.js b/test/parallel/test-timers-linked-list.js index 3c292cbdfcd238..34987c7e46df0e 100644 --- a/test/parallel/test-timers-linked-list.js +++ b/test/parallel/test-timers-linked-list.js @@ -25,10 +25,7 @@ require('../common'); const assert = require('assert'); -const L = require('_linklist'); // eslint-disable-line no-restricted-modules -const internalL = require('internal/linkedlist'); - -assert.strictEqual(L, internalL); +const L = require('internal/linkedlist'); const list = { name: 'list' }; const A = { name: 'A' };