diff options
author | Ben Burdette <bburdette@protonmail.com> | 2022-04-08 13:30:18 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@protonmail.com> | 2022-04-08 13:30:18 -0600 |
commit | a86c2a8481c5bedb992d7126bc342a34b9c4902e (patch) | |
tree | 8891a81020466dde59be94dd65c2c8ac1159f6fd /src/libcmd/command.cc | |
parent | b8b8ec710160cfd343a8fce33ec8734e23c98444 (diff) |
remove 'debugError', dead code
Diffstat (limited to 'src/libcmd/command.cc')
-rw-r--r-- | src/libcmd/command.cc | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc index 5cb8728e9..5ef3b4bc6 100644 --- a/src/libcmd/command.cc +++ b/src/libcmd/command.cc @@ -120,9 +120,6 @@ ref<EvalState> EvalCommand::getEvalState() ; if (startReplOnEvalErrors) debuggerHook = [evalState{ref<EvalState>(evalState)}](const Error * error, const Env & env, const Expr & expr) { - // clear the screen. - // std::cout << "\033[2J\033[1;1H"; - auto dts = error && expr.getPos() ? std::unique_ptr<DebugTraceStacker>( @@ -137,35 +134,13 @@ ref<EvalState> EvalCommand::getEvalState() })) : nullptr; - if (error) printError("%s\n\n" ANSI_BOLD "Starting REPL to allow you to inspect the current state of the evaluator.\n" ANSI_NORMAL, error->what()); - // else - // { - // auto iter = evalState->debugTraces.begin(); - // if (iter != evalState->debugTraces.end()) { - // std::cout << "\n" << "… " << iter->hint.str() << "\n"; - - // if (iter->pos.has_value() && (*iter->pos)) { - // auto pos = iter->pos.value(); - // std::cout << "\n"; - // printAtPos(pos, std::cout); - - // auto loc = getCodeLines(pos); - // if (loc.has_value()) { - // std::cout << "\n"; - // printCodeLines(std::cout, "", pos, *loc); - // std::cout << "\n"; - // } - // } - // } - // } - if (expr.staticenv) { std::unique_ptr<valmap> vm(mapStaticEnvBindings(*expr.staticenv.get(), env)); - runRepl(evalState, error, expr, *vm); + runRepl(evalState, expr, *vm); } }; } |