Skip to content

Commit

Permalink
Merge pull request #24 from MarcoFalke/Mf1608-cleanup
Browse files Browse the repository at this point in the history
Rem unused vars and prefer prefix operator for non-primitive type
  • Loading branch information
jgarzik committed Aug 25, 2016
2 parents 09a2693 + faf260f commit d9e62d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/univalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ bool UniValue::setNumStr(const string& val_)

bool UniValue::setInt(uint64_t val_)
{
string s;
ostringstream oss;

oss << val_;
Expand All @@ -131,7 +130,6 @@ bool UniValue::setInt(uint64_t val_)

bool UniValue::setInt(int64_t val_)
{
string s;
ostringstream oss;

oss << val_;
Expand All @@ -141,7 +139,6 @@ bool UniValue::setInt(int64_t val_)

bool UniValue::setFloat(double val_)
{
string s;
ostringstream oss;

oss << std::setprecision(16) << val_;
Expand Down Expand Up @@ -228,7 +225,7 @@ int UniValue::findKey(const std::string& key) const
bool UniValue::checkObject(const std::map<std::string,UniValue::VType>& t)
{
for (std::map<std::string,UniValue::VType>::const_iterator it = t.begin();
it != t.end(); it++) {
it != t.end(); ++it) {
int idx = findKey(it->first);
if (idx < 0)
return false;
Expand Down

0 comments on commit d9e62d3

Please sign in to comment.