From 9c39b5ec48be8d4281b880ef0f56baea77288cf4 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Thu, 17 Nov 2022 19:31:45 +0100 Subject: [PATCH] src: remove the unused PackageConfig class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/45478 Reviewed-By: Colin Ihrig Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Tobias Nießen Reviewed-By: Daeyeon Jeong Reviewed-By: Akhil Marsonya Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- src/env.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/env.h b/src/env.h index e1f63e71fa9cec..c4aab5cc45485f 100644 --- a/src/env.h +++ b/src/env.h @@ -93,24 +93,6 @@ class Worker; namespace loader { class ModuleWrap; - -struct PackageConfig { - enum class Exists { Yes, No }; - enum class IsValid { Yes, No }; - enum class HasMain { Yes, No }; - enum class HasName { Yes, No }; - enum PackageType : uint32_t { None = 0, CommonJS, Module }; - - const Exists exists; - const IsValid is_valid; - const HasMain has_main; - const std::string main; - const HasName has_name; - const std::string name; - const PackageType type; - - v8::Global exports; -}; } // namespace loader class Environment;