From 6faa56ea1f7f8b708e8c931f41b627541a023c79 Mon Sep 17 00:00:00 2001 From: Ben Burdette Date: Sun, 15 May 2022 12:05:34 -0600 Subject: [PATCH] remove extra argument --- src/libcmd/command.cc | 2 +- src/libcmd/command.hh | 1 - src/libcmd/repl.cc | 1 - 3 files changed, 1 insertion(+), 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 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, - 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, - const Expr &expr, const ValMap & extraEnv) { auto repl = std::make_unique(evalState);