simplewallet: cleanup

Remove empty static function which was refactored, as well as
leftover exception testing code.
This commit is contained in:
moneromooo-monero 2017-02-02 20:56:53 +00:00
parent a9a9b64b13
commit 3471907160
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 0 additions and 5 deletions

View File

@ -890,10 +890,6 @@ void simple_wallet::print_seed(std::string seed)
std::cout << seed << std::endl; std::cout << seed << std::endl;
} }
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------
static bool is_local_daemon(const std::string &address)
{
}
//----------------------------------------------------------------------------------------------------
bool simple_wallet::init(const boost::program_options::variables_map& vm) bool simple_wallet::init(const boost::program_options::variables_map& vm)
{ {
if (!handle_command_line(vm)) if (!handle_command_line(vm))
@ -4302,7 +4298,6 @@ int main(int argc, char* argv[])
const bool r = w.init(*vm); const bool r = w.init(*vm);
CHECK_AND_ASSERT_MES(r, 1, sw::tr("Failed to initialize wallet")); CHECK_AND_ASSERT_MES(r, 1, sw::tr("Failed to initialize wallet"));
try{ throw 1; } catch(...){}
std::vector<std::string> command = command_line::get_arg(*vm, arg_command); std::vector<std::string> command = command_line::get_arg(*vm, arg_command);
if (!command.empty()) if (!command.empty())
{ {