aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-07-30 23:25:30 -0400
committerJeff Garzik <jgarzik@bitpay.com>2014-07-30 23:25:30 -0400
commitc7614f16d6d123ef182180a96fe43449e73db0b0 (patch)
tree07aecb25054111b7809f5bc406f10458ab7b156c
parenta715a643bcda579c324b2c1d2dac449a320951c9 (diff)
univalue: remove unused methods getArray, getObject
-rw-r--r--src/univalue/univalue.cpp22
-rw-r--r--src/univalue/univalue.h2
2 files changed, 0 insertions, 24 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++) {
diff --git a/src/univalue/univalue.h b/src/univalue/univalue.h
index 5e94b6ba23..0a7bf3cceb 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<UniValue>& arr);
- bool getObject(std::map<std::string,UniValue>& obj);
bool checkObject(const std::map<std::string,UniValue::VType>& memberTypes);
const UniValue& operator[](const std::string& key) const;
const UniValue& operator[](unsigned int index) const;