@@ -83,66 +83,10 @@ class UniValue {
83
83
bool isObject () const { return (typ == VOBJ); }
84
84
85
85
bool push_back (const UniValue& val);
86
- bool push_back (const std::string& val_) {
87
- UniValue tmpVal (VSTR, val_);
88
- return push_back (tmpVal);
89
- }
90
- bool push_back (const char *val_) {
91
- std::string s (val_);
92
- return push_back (s);
93
- }
94
- bool push_back (uint64_t val_) {
95
- UniValue tmpVal (val_);
96
- return push_back (tmpVal);
97
- }
98
- bool push_back (int64_t val_) {
99
- UniValue tmpVal (val_);
100
- return push_back (tmpVal);
101
- }
102
- bool push_back (bool val_) {
103
- UniValue tmpVal (val_);
104
- return push_back (tmpVal);
105
- }
106
- bool push_back (int val_) {
107
- UniValue tmpVal (val_);
108
- return push_back (tmpVal);
109
- }
110
- bool push_back (double val_) {
111
- UniValue tmpVal (val_);
112
- return push_back (tmpVal);
113
- }
114
86
bool push_backV (const std::vector<UniValue>& vec);
115
87
116
88
void __pushKV (const std::string& key, const UniValue& val);
117
89
bool pushKV (const std::string& key, const UniValue& val);
118
- bool pushKV (const std::string& key, const std::string& val_) {
119
- UniValue tmpVal (VSTR, val_);
120
- return pushKV (key, tmpVal);
121
- }
122
- bool pushKV (const std::string& key, const char *val_) {
123
- std::string _val (val_);
124
- return pushKV (key, _val);
125
- }
126
- bool pushKV (const std::string& key, int64_t val_) {
127
- UniValue tmpVal (val_);
128
- return pushKV (key, tmpVal);
129
- }
130
- bool pushKV (const std::string& key, uint64_t val_) {
131
- UniValue tmpVal (val_);
132
- return pushKV (key, tmpVal);
133
- }
134
- bool pushKV (const std::string& key, bool val_) {
135
- UniValue tmpVal (val_);
136
- return pushKV (key, tmpVal);
137
- }
138
- bool pushKV (const std::string& key, int val_) {
139
- UniValue tmpVal ((int64_t )val_);
140
- return pushKV (key, tmpVal);
141
- }
142
- bool pushKV (const std::string& key, double val_) {
143
- UniValue tmpVal (val_);
144
- return pushKV (key, tmpVal);
145
- }
146
90
bool pushKVs (const UniValue& obj);
147
91
148
92
std::string write (unsigned int prettyIndent = 0 ,
@@ -185,8 +129,6 @@ class UniValue {
185
129
}
186
130
bool get_bool () const ;
187
131
const std::string& get_str () const ;
188
- auto get_int () const { return getInt<int >(); };
189
- auto get_int64 () const { return getInt<int64_t >(); };
190
132
double get_real () const ;
191
133
const UniValue& get_obj () const ;
192
134
const UniValue& get_array () const ;
0 commit comments