aboutsummaryrefslogtreecommitdiff
path: root/src/univalue/univalue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/univalue/univalue.cpp')
-rw-r--r--src/univalue/univalue.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/univalue/univalue.cpp b/src/univalue/univalue.cpp
index e577aa8ee4..afc208bffb 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<UniValue>& arr)
-{
- if (typ != VARR)
- return false;
-
- arr = values;
- return true;
-}
-
-bool UniValue::getObject(std::map<std::string,UniValue>& 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++) {