From f9dc90cb178daf2f1c2a1459178ca4f6245e5ed3 Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 30 Nov 2019 17:31:32 -0500 Subject: [PATCH] remove unrecognized field warnings which are incorrect because superclasses handle some fields --- src/utils/monero_utils.cpp | 2 -- src/wallet/monero_wallet_model.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/utils/monero_utils.cpp b/src/utils/monero_utils.cpp index a56d6bf..d2268a4 100644 --- a/src/utils/monero_utils.cpp +++ b/src/utils/monero_utils.cpp @@ -213,8 +213,6 @@ rapidjson::Value monero_utils::to_rapidjson_val(rapidjson::Document::AllocatorTy // ------------------------ PROPERTY TREES --------------------------- -// TODO: switch to rapidjson - string monero_utils::serialize(const boost::property_tree::ptree& node) { std::stringstream ss; boost::property_tree::write_json(ss, node, false); diff --git a/src/wallet/monero_wallet_model.cpp b/src/wallet/monero_wallet_model.cpp index cf1b550..e6e0513 100644 --- a/src/wallet/monero_wallet_model.cpp +++ b/src/wallet/monero_wallet_model.cpp @@ -884,7 +884,6 @@ namespace monero { else if (key == string("subaddressIndex")) output_wallet->m_subaddress_index = it->second.get_value(); else if (key == string("isSpent")) output_wallet->m_is_spent = it->second.get_value(); else if (key == string("isFrozen")) output_wallet->m_is_frozen = it->second.get_value(); - else cout << "WARNING: unrecognized field deserializing node to output wallet: " << key << endl; } } @@ -949,7 +948,6 @@ namespace monero { string key = it->first; if (key == string("subaddressIndices")) for (boost::property_tree::ptree::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2) output_query->m_subaddress_indices.push_back(it2->second.get_value()); else if (key == string("txQuery")) {} // ignored - else cout << "WARNING: unrecognized field deserializing node to output query: " << key << endl; } }