From 005714eb9ae0844077c5a992b47ccbaf569662e4 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Mon, 21 Nov 2022 17:25:42 +0800 Subject: [PATCH] build: fix env.h for cpp20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: joyeecheung PR-URL: https://github.com/nodejs/node/pull/45516 Reviewed-By: Ben Noordhuis Reviewed-By: Yagiz Nizipli Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Rafael Gonzaga Reviewed-By: Darshan Sen --- src/env.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/env.h b/src/env.h index 36fe48f60285cd..396416b42ae348 100644 --- a/src/env.h +++ b/src/env.h @@ -454,9 +454,6 @@ struct DeserializeRequest { v8::Global holder; int index; InternalFieldInfoBase* info = nullptr; // Owned by the request - - // Move constructor - DeserializeRequest(DeserializeRequest&& other) = default; }; struct EnvSerializeInfo { @@ -520,13 +517,6 @@ struct SnapshotData { static bool FromBlob(SnapshotData* out, FILE* in); ~SnapshotData(); - - SnapshotData(const SnapshotData&) = delete; - SnapshotData& operator=(const SnapshotData&) = delete; - SnapshotData(SnapshotData&&) = delete; - SnapshotData& operator=(SnapshotData&&) = delete; - - SnapshotData() = default; }; void DefaultProcessExitHandlerInternal(Environment* env, ExitCode exit_code);