mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06: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)
|
if (expr.staticenv)
|
||||||
{
|
{
|
||||||
auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env);
|
auto vm = mapStaticEnvBindings(*expr.staticenv.get(), env);
|
||||||
runRepl(evalState, *vm);
|
runRepl(evalState, *vm);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "util.hh"
|
#include "util.hh"
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue