File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -147,28 +147,6 @@ bool UniValue::pushKVs(const UniValue& obj)
147
147
return true ;
148
148
}
149
149
150
- bool UniValue::getArray (std::vector<UniValue>& arr)
151
- {
152
- if (typ != VARR)
153
- return false ;
154
-
155
- arr = values;
156
- return true ;
157
- }
158
-
159
- bool UniValue::getObject (std::map<std::string,UniValue>& obj)
160
- {
161
- if (typ != VOBJ)
162
- return false ;
163
-
164
- obj.clear ();
165
- for (unsigned int i = 0 ; i < keys.size (); i++) {
166
- obj[keys[i]] = values[i];
167
- }
168
-
169
- return true ;
170
- }
171
-
172
150
int UniValue::findKey (const std::string& key) const
173
151
{
174
152
for (unsigned int i = 0 ; i < keys.size (); i++) {
Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ class UniValue {
61
61
size_t count () const { return values.size (); }
62
62
63
63
bool getBool () const { return isTrue (); }
64
- bool getArray (std::vector<UniValue>& arr);
65
- bool getObject (std::map<std::string,UniValue>& obj);
66
64
bool checkObject (const std::map<std::string,UniValue::VType>& memberTypes);
67
65
const UniValue& operator [](const std::string& key) const ;
68
66
const UniValue& operator [](unsigned int index) const ;
You can’t perform that action at this time.
0 commit comments