refactor(3p/nix/libexpr): state->allocBindings -> Bindings::NewGC

EvalState::allocBindings had little to do with Bindings, other than
returning them, and didn't belong in that class.
This commit is contained in:
Vincent Ambo 2020-05-22 16:48:30 +01:00
parent e24466c795
commit b3c9166b23
10 changed files with 14 additions and 15 deletions

View file

@ -19,7 +19,7 @@ DrvInfos queryInstalled(EvalState& state, const Path& userEnv) {
if (pathExists(manifestFile)) {
Value v;
state.evalFile(manifestFile, v);
Bindings& bindings(*state.allocBindings(0));
Bindings& bindings(*Bindings::NewGC());
getDerivations(state, v, "", bindings, elems, false);
}
return elems;