From 748f676ea6474053e592f47804da27d4b9e49041 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sat, 13 Sep 2025 02:20:28 -0300 Subject: remove ParseOptionalIPAddress I had just added it in the last commit but it made its use case non-obvious. Checking whether the string is empty before trying to parse an IP address is clearer than calling some function that has its own concept of what an empty address is. --- src/querymanager.hh | 1 - 1 file changed, 1 deletion(-) (limited to 'src/querymanager.hh') diff --git a/src/querymanager.hh b/src/querymanager.hh index 0137f64..c1e48eb 100644 --- a/src/querymanager.hh +++ b/src/querymanager.hh @@ -110,7 +110,6 @@ bool StringEqCI(const char *A, const char *B); bool StringCopyN(char *Dest, int DestCapacity, const char *Src, int SrcLength); bool StringCopy(char *Dest, int DestCapacity, const char *Src); bool ParseIPAddress(const char *String, int *OutAddr); -bool ParseOptionalIPAddress(const char *String, int *OutAddr); bool ReadBooleanConfig(bool *Dest, const char *Val); bool ReadIntegerConfig(int *Dest, const char *Val); -- cgit v1.2.3