diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-08-26 23:31:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-26 23:31:45 +0200 |
commit | cd30e0b86ce6ee88386a91cebdf353fc55805c57 (patch) | |
tree | 1453f0e4dcbe2f2197913e916ab3e99116a29080 /src/common/Utilities/Util.cpp | |
parent | 7cc027401e4a2837872db54c835a4ed1a98e4a03 (diff) |
Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR #25335)
Diffstat (limited to 'src/common/Utilities/Util.cpp')
-rw-r--r-- | src/common/Utilities/Util.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp index da086c6b6cc..49cac60b924 100644 --- a/src/common/Utilities/Util.cpp +++ b/src/common/Utilities/Util.cpp @@ -651,11 +651,6 @@ void Trinity::Impl::HexStrToByteArray(std::string_view str, uint8* out, size_t o } } -bool StringToBool(std::string_view str) -{ - return ((str == "1") || StringEqualI(str, "true") || StringEqualI(str, "yes")); -} - bool StringEqualI(std::string_view str1, std::string_view str2) { return std::equal(str1.begin(), str1.end(), str2.begin(), str2.end(), |