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 <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Daeyeon Jeong <[email protected]>
Reviewed-By: Akhil Marsonya <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
joyeecheung authored and ruyadorno committed Nov 21, 2022
1 parent 38767b4 commit 10e7c2a
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 10e7c2a

Please sign in to comment.