]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Remove dead code. 16678/head
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 24 Dec 2025 14:22:01 +0000 (15:22 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 24 Dec 2025 14:22:01 +0000 (15:22 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/remotebackend/remotebackend.cc
modules/remotebackend/remotebackend.hh

index 573f8bc5cef2a54293703e5f1e7c06229ea59606..12073ae9fe35f1bc825461007342e68b2ea396b5 100644 (file)
@@ -69,15 +69,6 @@ bool Connector::recv(Json& value)
   throw PDNSException("Unknown error while receiving data");
 }
 
-void RemoteBackend::makeErrorAndThrow(Json& value)
-{
-  std::string msg = "Remote process indicated a failure";
-  for (const auto& message : value["log"].array_items()) {
-    msg += " '" + message.string_value() + "'";
-  }
-  throw PDNSException(msg);
-}
-
 /**
  * Standard ctor and dtor
  */
index 77671e9b1a822464730962eac8530bf8a53eae8a..eb50e470ffbb388695fded8039fc1840540e93b9 100644 (file)
@@ -219,7 +219,6 @@ private:
 
   bool send(Json& value);
   bool recv(Json& value);
-  static void makeErrorAndThrow(Json& value);
 
   static string asString(const Json& value)
   {