diff --git a/src/univalue/univalue.cpp b/src/univalue/univalue.cpp index e577aa8ee49..afc208bffb9 100644 --- a/src/univalue/univalue.cpp +++ b/src/univalue/univalue.cpp @@ -147,28 +147,6 @@ bool UniValue::pushKVs(const UniValue& obj) return true; } -bool UniValue::getArray(std::vector& arr) -{ - if (typ != VARR) - return false; - - arr = values; - return true; -} - -bool UniValue::getObject(std::map& obj) -{ - if (typ != VOBJ) - return false; - - obj.clear(); - for (unsigned int i = 0; i < keys.size(); i++) { - obj[keys[i]] = values[i]; - } - - return true; -} - int UniValue::findKey(const std::string& key) const { for (unsigned int i = 0; i < keys.size(); i++) { diff --git a/src/univalue/univalue.h b/src/univalue/univalue.h index 5e94b6ba238..0a7bf3cceba 100644 --- a/src/univalue/univalue.h +++ b/src/univalue/univalue.h @@ -61,8 +61,6 @@ public: size_t count() const { return values.size(); } bool getBool() const { return isTrue(); } - bool getArray(std::vector& arr); - bool getObject(std::map& obj); bool checkObject(const std::map& memberTypes); const UniValue& operator[](const std::string& key) const; const UniValue& operator[](unsigned int index) const;