mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
linkedlist: remove public module
PR-URL: https://github.com/nodejs/node/pull/12113 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
parent
e1161a3718
commit
84a23391f6
@ -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
|
||||
|
@ -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');
|
1
node.gyp
1
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',
|
||||
|
@ -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' };
|
||||
|
Loading…
Reference in New Issue
Block a user