diff options
| author | Jeff Garzik <[email protected]> | 2014-07-30 23:25:30 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2014-07-30 23:25:30 -0400 |
| commit | c7614f16d6d123ef182180a96fe43449e73db0b0 (patch) | |
| tree | 07aecb25054111b7809f5bc406f10458ab7b156c /src/univalue/univalue.cpp | |
| parent | Merge branch 'rawtx' into merge-rawtx (diff) | |
| download | discoin-c7614f16d6d123ef182180a96fe43449e73db0b0.tar.xz discoin-c7614f16d6d123ef182180a96fe43449e73db0b0.zip | |
univalue: remove unused methods getArray, getObject
Diffstat (limited to 'src/univalue/univalue.cpp')
| -rw-r--r-- | src/univalue/univalue.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/univalue/univalue.cpp b/src/univalue/univalue.cpp index e577aa8ee..afc208bff 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++) { |