From ec5135e5b71e0bc5d5f596e56e9818dec38e9867 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 28 Oct 2017 16:09:13 +0100 Subject: move input_line from command_line to simplewallet It was only used there, and this removes one part of the common dependency on libreadline --- src/common/command_line.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/common/command_line.cpp') diff --git a/src/common/command_line.cpp b/src/common/command_line.cpp index 2117aa968..4b9ca9559 100644 --- a/src/common/command_line.cpp +++ b/src/common/command_line.cpp @@ -36,10 +36,6 @@ #include "cryptonote_config.h" #include "string_tools.h" -#ifdef HAVE_READLINE - #include "readline_buffer.h" -#endif - namespace command_line { namespace @@ -50,20 +46,6 @@ namespace command_line } } - std::string input_line(const std::string& prompt) - { -#ifdef HAVE_READLINE - rdln::suspend_readline pause_readline; -#endif - std::cout << prompt; - - std::string buf; - std::getline(std::cin, buf); - - return epee::string_tools::trim(buf); - - } - bool is_yes(const std::string& str) { if (str == "y" || str == "Y") -- cgit v1.2.3