From 752d82d87352eccaa6de8a2a78c16e943763fd87 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Thu, 10 Jun 2021 14:54:13 +0800 Subject: [PATCH] fixup! bootstrap: implement --snapshot-blob and --snapshot-main --- src/node.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/node.cc b/src/node.cc index ea4c795198f92c..1815b5adc002a2 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1153,12 +1153,6 @@ int Start(int argc, char** argv) { snapshot_blob_path = per_process::cli_options->snapshot_blob; } else { snapshot_blob_path = std::string("snapshot.blob"); - char buf[PATH_MAX_BYTES]; - size_t cwd_size = sizeof(buf); - if (uv_cwd(buf, &cwd_size)) { - snapshot_blob_path = - std::string(buf) + kPathSeparator + std::string("snapshot.blob"); - } } FILE* fp = fopen(snapshot_blob_path.c_str(), "w");