Skip to content

Commit

Permalink
Merge pull request #2280 from barton2526/itostring
Browse files Browse the repository at this point in the history
util: Remove unused itostr
  • Loading branch information
jamescowens authored Aug 15, 2021
2 parents 992752e + 194245a commit 3349bd4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
10 changes: 0 additions & 10 deletions src/util/strencodings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,16 +427,6 @@ std::string FormatParagraph(const std::string& in, size_t width, size_t indent)
return out.str();
}

std::string i64tostr(int64_t n)
{
return strprintf("%d", n);
}

std::string itostr(int n)
{
return strprintf("%d", n);
}

int64_t atoi64(const char* psz)
{
#ifdef _MSC_VER
Expand Down
2 changes: 0 additions & 2 deletions src/util/strencodings.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ std::string EncodeBase32(const unsigned char* pch, size_t len);
std::string EncodeBase32(const std::string& str);

void SplitHostPort(std::string in, int &portOut, std::string &hostOut);
std::string i64tostr(int64_t n);
std::string itostr(int n);
int64_t atoi64(const char* psz);
int64_t atoi64(const std::string& str);
int atoi(const std::string& str);
Expand Down
3 changes: 2 additions & 1 deletion src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "script.h"
#include "streams.h"
#include "ui_interface.h"
#include <util/string.h>
#include "wallet/generated_type.h"
#include "wallet/walletdb.h"
#include "wallet/ismine.h"
Expand Down Expand Up @@ -464,7 +465,7 @@ static void WriteOrderPos(const int64_t& nOrderPos, mapValue_t& mapValue)
{
if (nOrderPos == -1)
return;
mapValue["n"] = i64tostr(nOrderPos);
mapValue["n"] = ToString(nOrderPos);
}

struct COutputEntry
Expand Down

0 comments on commit 3349bd4

Please sign in to comment.