src: remove unused variables from report

PR-URL: https://github.com/nodejs/node/pull/60047
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
Moonki Choi 2025-10-03 07:31:09 +09:00 committed by GitHub
parent 5d843c914e
commit 36b1cc2fcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -757,7 +757,6 @@ static void PrintSystemInformation(JSONWriter* writer) {
writer->json_objectstart("userLimits");
struct rlimit limit;
std::string soft, hard;
for (size_t i = 0; i < arraysize(rlimit_strings); i++) {
if (getrlimit(rlimit_strings[i].id, &limit) == 0) {
@ -793,8 +792,6 @@ static void PrintLoadedLibraries(JSONWriter* writer) {
// Obtain and report the node and subcomponent version strings.
static void PrintComponentVersions(JSONWriter* writer) {
std::stringstream buf;
writer->json_objectstart("componentVersions");
for (const auto& version : per_process::metadata.versions.pairs()) {