From 9240e6e24ce2f931afb102069b396de99ffbc4c5 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 --- .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 1362c9cb29e387..0082bb45d7f691 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 597df9d1262cc5..40e0c53e0c56ff 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' };