univalue: remove unused methods getArray, getObject

This commit is contained in:
Jeff Garzik 2014-07-30 23:25:30 -04:00
parent a715a643bc
commit c7614f16d6
Failed to extract signature
2 changed files with 0 additions and 24 deletions

View file

@ -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++) {

View file

@ -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;