aboutsummaryrefslogtreecommitdiff
path: root/src/querymanager.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-09-13 02:20:28 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-09-13 02:20:28 -0300
commit748f676ea6474053e592f47804da27d4b9e49041 (patch)
treeaad574d96a87ca24f1228b4191030dad66e9dcdc /src/querymanager.hh
parent5e980ee99afd161d6258e5ea68f7284f715e5577 (diff)
downloadquerymanager-748f676ea6474053e592f47804da27d4b9e49041.tar.gz
querymanager-748f676ea6474053e592f47804da27d4b9e49041.zip
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.
Diffstat (limited to 'src/querymanager.hh')
-rw-r--r--src/querymanager.hh1
1 files changed, 0 insertions, 1 deletions
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);