Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: Remove unused itostr #2280

Merged
merged 1 commit into from
Aug 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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