epee: remove dead code in math_helper and string_tools

This commit is contained in:
jeffro256
2023-10-25 16:41:21 -05:00
parent 67d190ce7c
commit e191083bed
8 changed files with 9 additions and 212 deletions
-10
View File
@@ -82,16 +82,6 @@ namespace string_tools
return true;
}
//----------------------------------------------------------------------------
bool validate_hex(uint64_t length, const std::string& str)
{
if (str.size() != length)
return false;
for (char c: str)
if (!isxdigit(c))
return false;
return true;
}
//----------------------------------------------------------------------------
bool parse_peer_from_string(uint32_t& ip, uint16_t& port, const std::string& addres)
{
//parse ip and address