]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Remove never used third argument of xfrName(). 15656/head
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 11 Jun 2025 07:48:07 +0000 (09:48 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 11 Jun 2025 08:30:28 +0000 (10:30 +0200)
pdns/dnsdistdist/dnsdist-svc.cc
pdns/dnsparser.hh
pdns/dnsrecords.cc
pdns/dnswriter.cc
pdns/dnswriter.hh
pdns/rcpgenerator.cc
pdns/rcpgenerator.hh

index 18ec3a62c3e1f4560030a806cc6c7e909fa05c3f..19a2222c2219e107966fc7aab690986e8e47bbcf 100644 (file)
@@ -79,7 +79,7 @@ bool generateSVCPayload(std::vector<uint8_t>& payload, uint16_t priority, const
   pw.startRecord(g_rootdnsname, QType::A, 60, QClass::IN, DNSResourceRecord::ANSWER, false);
   size_t offset = pw.size();
   pw.xfr16BitInt(priority);
-  pw.xfrName(target, false, true);
+  pw.xfrName(target, false);
   pw.xfrSvcParamKeyVals(params);
   pw.commit();
 
index 947ba6c77c5193d3233a920245ee6f9c32fad333..47f52df2e07387fc7bf073f36bd963ad4c0961bf 100644 (file)
@@ -136,7 +136,7 @@ public:
     val=get8BitInt();
   }
 
-  void xfrName(DNSName& name, bool /* compress */ = false, bool /* noDot */ = false)
+  void xfrName(DNSName& name, bool /* compress */ = false)
   {
     name = getName();
   }
index 85ce9e471ef053d78352e495e5528e622c578eb5..7db552d86330f39512e6dcaaf23ebc7860184984 100644 (file)
@@ -357,7 +357,7 @@ boilerplate_conv(OPENPGPKEY,
 
 boilerplate_conv(SVCB,
                  conv.xfr16BitInt(d_priority);
-                 conv.xfrName(d_target, false, true);
+                 conv.xfrName(d_target, false);
                  if (d_priority != 0) {
                    conv.xfrSvcParamKeyVals(d_params);
                  }
@@ -365,7 +365,7 @@ boilerplate_conv(SVCB,
 
 boilerplate_conv(HTTPS,
                  conv.xfr16BitInt(d_priority);
-                 conv.xfrName(d_target, false, true);
+                 conv.xfrName(d_target, false);
                  if (d_priority != 0) {
                    conv.xfrSvcParamKeyVals(d_params);
                  }
index 5ee38dd75754d689042d3eafaaedbea74c762d8b..fc02ebef799982c78d9e16956a08b661e5eacdb3 100644 (file)
@@ -316,7 +316,7 @@ template <typename Container> uint16_t GenericDNSPacketWriter<Container>::lookup
   return bestpos;
 }
 // this is the absolute hottest function in the pdns recursor
-template <typename Container> void GenericDNSPacketWriter<Container>::xfrName(const DNSName& name, bool compress, bool)
+template <typename Container> void GenericDNSPacketWriter<Container>::xfrName(const DNSName& name, bool compress)
 {
   if(l_verbose)
     cout<<"Wants to write "<<name<<", compress="<<compress<<", canonic="<<d_canonic<<", LC="<<d_lowerCase<<endl;
index 37829e56c5b177a7d735c5d33d1f34709b4112f0..7d60661485b05a432cd56e496fe2f9748ec6ba9b 100644 (file)
@@ -127,7 +127,7 @@ public:
 
   void xfr8BitInt(uint8_t val);
 
-  void xfrName(const DNSName& label, bool compress=false, bool noDot=false);
+  void xfrName(const DNSName& name, bool compress=false);
   void xfrText(const string& text, bool multi=false, bool lenField=true);
   void xfrUnquotedText(const string& text, bool lenField);
   void xfrBlob(const string& blob, int len=-1);
index bdb14bf148305b771598984e2829d603804b68e4..0adfcceb1025874b8a66314de9cae044109e088a 100644 (file)
@@ -251,7 +251,7 @@ void RecordTextReader::xfr8BitInt(uint8_t &val)
 }
 
 // this code should leave all the escapes around
-void RecordTextReader::xfrName(DNSName& val, bool, bool)
+void RecordTextReader::xfrName(DNSName& val, [[maybe_unused]] bool compress)
 {
   skipSpaces();
   DNSName sval;
@@ -793,7 +793,7 @@ void RecordTextWriter::xfr8BitInt(const uint8_t& val)
 }
 
 // should not mess with the escapes
-void RecordTextWriter::xfrName(const DNSName& val, bool /* unused */, bool /* noDot */)
+void RecordTextWriter::xfrName(const DNSName& val, bool /* unused */)
 {
   if(!d_string.empty())
     d_string.append(1,' ');
index 87880008c43dca64a5b5896118007ee8a612bfb8..4892109d1bb0f3995b7b1976a39688f839eadddb 100644 (file)
@@ -55,7 +55,7 @@ public:
   void xfrCAPort(ComboAddress &val);
   void xfrTime(uint32_t& val);
 
-  void xfrName(DNSName& val, bool compress=false, bool noDot=false);
+  void xfrName(DNSName& val, bool compress=false);
   void xfrText(string& val, bool multi=false, bool lenField=true);
   void xfrUnquotedText(string& val, bool lenField=true);
   void xfrHexBlob(string& val, bool keepReading=false);
@@ -99,7 +99,7 @@ public:
   void xfrBase32HexBlob(const string& val);
 
   void xfrType(const uint16_t& val);
-  void xfrName(const DNSName& val, bool compress=false, bool noDot=false);
+  void xfrName(const DNSName& val, bool compress=false);
   void xfrText(const string& val, bool multi=false, bool lenField=true);
   void xfrUnquotedText(const string& val, bool lenField=true);
   void xfrBlobNoSpaces(const string& val, int len=-1);