1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 20:16:03 +01:00

libexpr: Remove vString* Values from EvalState

EvalState is too big and cluttered. These strings
can be private constant statics.
This commit is contained in:
Sergei Zimmerman 2025-09-12 23:44:52 +03:00
parent 377b60ee9b
commit f4c38278ca
No known key found for this signature in database
3 changed files with 36 additions and 22 deletions

View file

@ -284,11 +284,6 @@ EvalState::EvalState(
static_assert(sizeof(Env) <= 16, "environment must be <= 16 bytes");
vStringRegular.mkStringNoCopy("regular");
vStringDirectory.mkStringNoCopy("directory");
vStringSymlink.mkStringNoCopy("symlink");
vStringUnknown.mkStringNoCopy("unknown");
/* Construct the Nix expression search path. */
assert(lookupPath.elements.empty());
if (!settings.pureEval) {