From e2e212e3e32deb6927f3de0cc2a2e36bda27bae4 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 4 Aug 2025 09:37:07 +0200 Subject: [PATCH] Remove unused bitFlip(). Signed-off-by: Miod Vallat --- pdns/misc.cc | 10 ---------- pdns/misc.hh | 2 -- 2 files changed, 12 deletions(-) diff --git a/pdns/misc.cc b/pdns/misc.cc index f22e3ff00..8b662c5af 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -480,16 +480,6 @@ std::string getCarbonHostName() return *hostname; } -string bitFlip(const string &str) -{ - string::size_type pos=0, epos=str.size(); - string ret; - ret.reserve(epos); - for(;pos < epos; ++pos) - ret.append(1, ~str[pos]); - return ret; -} - void cleanSlashes(string &str) { string out; diff --git a/pdns/misc.hh b/pdns/misc.hh index 390bc943b..482df37b2 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -205,8 +205,6 @@ inline string stringerror(int err = errno) return pdns::getMessageFromErrno(err); } -string bitFlip(const string &str); - void dropPrivs(int uid, int gid); void cleanSlashes(string &str); -- 2.47.2