Skip to content

Commit

Permalink
src: remove the unused PackageConfig class
Browse files Browse the repository at this point in the history
PR-URL: #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 Nov 17, 2022
1 parent a65a9d1 commit c5e74bb
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 c5e74bb

Please sign in to comment.