aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcmd/command.cc2
-rw-r--r--src/libcmd/command.hh1
-rw-r--r--src/libcmd/repl.cc1
3 files changed, 1 insertions, 3 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index 12cd5ed83..bf97a3de8 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -138,7 +138,7 @@ ref<EvalState> EvalCommand::getEvalState()
if (expr.staticEnv) {
auto vm = mapStaticEnvBindings(evalState->symbols, *expr.staticEnv.get(), env);
- runRepl(evalState, expr, *vm);
+ runRepl(evalState, *vm);
}
};
}
diff --git a/src/libcmd/command.hh b/src/libcmd/command.hh
index 454197b1c..196bd3aaa 100644
--- a/src/libcmd/command.hh
+++ b/src/libcmd/command.hh
@@ -275,7 +275,6 @@ void printClosureDiff(
void runRepl(
ref<EvalState> evalState,
- const Expr & expr,
const ValMap & extraEnv);
}
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 8f0b1bfc0..deac3d408 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -1012,7 +1012,6 @@ std::ostream & NixRepl::printValue(std::ostream & str, Value & v, unsigned int m
void runRepl(
ref<EvalState> evalState,
- const Expr &expr,
const ValMap & extraEnv)
{
auto repl = std::make_unique<NixRepl>(evalState);