1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-20 23:28:26 -04:00

more cleanup

This commit is contained in:
Ben Burdette 2021-11-25 08:23:07 -07:00
parent 7e2a3db4eb
commit 69e26c5c4b
3 changed files with 13 additions and 15 deletions

View file

@ -81,8 +81,8 @@ ref<EvalState> EvalCommand::getEvalState()
if (expr.staticenv) if (expr.staticenv)
{ {
auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env); auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env);
runRepl(evalState, *vm); runRepl(evalState, *vm);
} }
}; };
} }

View file

@ -633,12 +633,11 @@ void printStaticEnvBindings(const StaticEnv &se, int lvl)
void printStaticEnvBindings(const Expr &expr) void printStaticEnvBindings(const Expr &expr)
{ {
// just print the names for now // just print the names for now
if (expr.staticenv) if (expr.staticenv)
{ {
printStaticEnvBindings(*expr.staticenv.get(), 0); printStaticEnvBindings(*expr.staticenv.get(), 0);
} }
} }
void mapStaticEnvBindings(const StaticEnv &se, const Env &env, valmap & vm) void mapStaticEnvBindings(const StaticEnv &se, const Env &env, valmap & vm)

View file

@ -3,7 +3,6 @@
#include "util.hh" #include "util.hh"
#include <cstdlib> #include <cstdlib>
#include <iostream>
namespace nix { namespace nix {