mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 09:46:16 +02:00
more cleanup
This commit is contained in:
parent
7e2a3db4eb
commit
69e26c5c4b
3 changed files with 13 additions and 15 deletions
|
@ -81,8 +81,8 @@ ref<EvalState> EvalCommand::getEvalState()
|
|||
|
||||
if (expr.staticenv)
|
||||
{
|
||||
auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env);
|
||||
runRepl(evalState, *vm);
|
||||
auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env);
|
||||
runRepl(evalState, *vm);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -633,12 +633,11 @@ void printStaticEnvBindings(const StaticEnv &se, int lvl)
|
|||
|
||||
void printStaticEnvBindings(const Expr &expr)
|
||||
{
|
||||
// just print the names for now
|
||||
if (expr.staticenv)
|
||||
{
|
||||
printStaticEnvBindings(*expr.staticenv.get(), 0);
|
||||
}
|
||||
|
||||
// just print the names for now
|
||||
if (expr.staticenv)
|
||||
{
|
||||
printStaticEnvBindings(*expr.staticenv.get(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
void mapStaticEnvBindings(const StaticEnv &se, const Env &env, valmap & vm)
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "util.hh"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
|
Loading…
Reference in a new issue