aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r--src/libcmd/repl.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 64547344a..cf784db61 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -434,7 +434,6 @@ bool NixRepl::processLine(string line)
<< " :doc <expr> Show documentation of a builtin function\n"
<< " :d <cmd> Debug mode commands\n"
<< " :d stack Show call stack\n"
- // << " :d stack <int> Detail for stack level N\n"
<< " :d env Show env stack\n"
<< " :d error Show current error\n";
}
@@ -708,19 +707,6 @@ void NixRepl::addVarToScope(const Symbol & name, Value & v)
varNames.insert((string) name);
}
-// version from master.
-// void NixRepl::addVarToScope(const Symbol & name, Value & v)
-// {
-// if (displ >= envSize)
-// throw Error("environment full; cannot add more variables");
-// if (auto oldVar = staticEnv.find(name); oldVar != staticEnv.vars.end())
-// staticEnv.vars.erase(oldVar);
-// staticEnv.vars.emplace_back(name, displ);
-// staticEnv.sort();
-// env->values[displ++] = &v;
-// varNames.insert((string) name);
-// }
-
Expr * NixRepl::parseString(string s)
{
Expr * e = state->parseExprFromString(s, curDir, staticEnv);