From 2d6b337df9aae31b12030b2973a0f261efd4572b Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sun, 17 Jun 2018 23:03:39 +0800 Subject: [PATCH] process: remove unused arguments in setup() PR-URL: https://github.com/nodejs/node/pull/21377 Reviewed-By: Trivikram Kamat Reviewed-By: Gus Caplan Reviewed-By: Richard Lau Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Daijiro Wachi Reviewed-By: Ruben Bridgewater --- lib/internal/bootstrap/node.js | 4 ---- lib/internal/process/methods.js | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index a1162d384a1215..d120d8ccae14e6 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -53,10 +53,6 @@ _setupPromises); NativeModule.require('internal/process/stdio').setup(); NativeModule.require('internal/process/methods').setup(_chdir, - _cpuUsage, - _hrtime, - _memoryUsage, - _rawDebug, _umask, _initgroups, _setegid, diff --git a/lib/internal/process/methods.js b/lib/internal/process/methods.js index 77ceeafef41122..38ba5f84b5a30a 100644 --- a/lib/internal/process/methods.js +++ b/lib/internal/process/methods.js @@ -4,8 +4,7 @@ const { isMainThread } = require('internal/worker'); -function setupProcessMethods(_chdir, _cpuUsage, _hrtime, _memoryUsage, - _rawDebug, _umask, _initgroups, _setegid, +function setupProcessMethods(_chdir, _umask, _initgroups, _setegid, _seteuid, _setgid, _setuid, _setgroups) { // Non-POSIX platforms like Windows don't have certain methods. // Workers also lack these methods since they change process-global state.