diff options
author | Brian White <mscdex@mscdex.net> | 2017-03-07 11:07:16 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-04-04 20:59:44 +0300 |
commit | b40dab553f888070f1eaae6f749dc511d7c281fd (patch) | |
tree | 76ed7207ef17fe75cb2e255dbbb8697450016cc3 /lib/internal/linkedlist.js | |
parent | 394b6ac5cbb4947621bcef0bcfb90d0efbac21f4 (diff) |
linkedlist: remove unused methods
PR-URL: https://github.com/nodejs/node/pull/11726
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'lib/internal/linkedlist.js')
-rw-r--r-- | lib/internal/linkedlist.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/internal/linkedlist.js b/lib/internal/linkedlist.js index a8cba6d009b..d2e868a2cfd 100644 --- a/lib/internal/linkedlist.js +++ b/lib/internal/linkedlist.js @@ -5,26 +5,12 @@ function init(list) { list._idlePrev = list; } -// create a new linked list -function create() { - const list = { _idleNext: null, _idlePrev: null }; - init(list); - return list; -} - // show the most idle item function peek(list) { if (list._idlePrev === list) return null; return list._idlePrev; } -// remove the most idle item from the list -function shift(list) { - const first = list._idlePrev; - remove(first); - return first; -} - // remove a item from its list function remove(item) { if (item._idleNext) { @@ -61,9 +47,7 @@ function isEmpty(list) { module.exports = { init, - create, peek, - shift, remove, append, isEmpty |