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");