mirror of
https://github.com/monero-project/monero.git
synced 2025-08-13 03:15:32 -04:00
epee: remove dead code in math_helper and string_tools
This commit is contained in:
parent
67d190ce7c
commit
e191083bed
8 changed files with 9 additions and 212 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue