Skip to content

Commit 85699af

Browse files
authored
Merge pull request gridcoin-community#2562 from barton2526/atoi64
refactor: remove unused c-string variant of atoi64()
2 parents 1ca905e + 0cfe33f commit 85699af

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/util/strencodings.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -440,15 +440,6 @@ std::string FormatParagraph(const std::string& in, size_t width, size_t indent)
440440
return out.str();
441441
}
442442

443-
int64_t atoi64(const char* psz)
444-
{
445-
#ifdef _MSC_VER
446-
return _atoi64(psz);
447-
#else
448-
return strtoll(psz, nullptr, 10);
449-
#endif
450-
}
451-
452443
int64_t atoi64(const std::string& str)
453444
{
454445
#ifdef _MSC_VER

src/util/strencodings.h

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ std::string EncodeBase32(const unsigned char* pch, size_t len);
5555
std::string EncodeBase32(const std::string& str);
5656

5757
void SplitHostPort(std::string in, int &portOut, std::string &hostOut);
58-
int64_t atoi64(const char* psz);
5958
int64_t atoi64(const std::string& str);
6059
int atoi(const std::string& str);
6160

0 commit comments

Comments
 (0)