Skip to content

Commit

Permalink
src: remove the unused PackageConfig class
Browse files Browse the repository at this point in the history
PR-URL: nodejs#45478
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
joyeecheung authored and marco-ippolito committed Nov 23, 2022
1 parent 643c1c0 commit 3fd3259
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,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<v8::Value> exports;
};
} // namespace loader

class Environment;
Expand Down

0 comments on commit 3fd3259

Please sign in to comment.