Browse Source

Remove quit functionality from readConsole

Is now superseded by web3.admin.eth.exit()
cl-refactor
Lefteris Karapetsas 9 years ago
parent
commit
fe15d3e0c8
  1. 6
      libjsconsole/JSConsole.h

6
libjsconsole/JSConsole.h

@ -41,7 +41,7 @@ public:
JSConsole(): m_engine(Engine()), m_printer(Printer(m_engine)) {}
~JSConsole() {}
bool readExpression() const
void readExpression() const
{
std::string cmd = "";
g_logPost = [](std::string const& a, char const*)
@ -83,9 +83,6 @@ public:
}
} while (openBrackets > 0);
if (cmd == "quit")
return false;
if (!isEmpty)
{
#if ETH_READLINE
@ -95,7 +92,6 @@ public:
std::string result = m_printer.prettyPrint(value).cstr();
std::cout << result << std::endl;
}
return true;
}
void eval(std::string const& _expression) { m_engine.eval(_expression.c_str()); }

Loading…
Cancel
Save