From 26255889083f0e5b759a45be2644b2a3478bf4ce Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Tue, 8 Mar 2016 07:53:00 -0300 Subject: [PATCH] Remove unused function simpleExpandTo --- pdns/dnsparser.cc | 11 ----------- pdns/dnsparser.hh | 1 - 2 files changed, 12 deletions(-) diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index 81753618ab..499ddea211 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -529,17 +529,6 @@ string simpleCompress(const string& elabel, const string& root) } -// FIXME400 this function needs to go -void simpleExpandTo(const string& label, unsigned int frompos, string& ret) -{ - unsigned int labellen=0; - while((labellen=(unsigned char)label.at(frompos++))) { - ret.append(label.c_str()+frompos, labellen); - ret.append(1,'.'); - frompos+=labellen; - } -} - /** Simple DNSPacketMangler. Ritual is: get a pointer into the packet and moveOffset() to beyond your needs * If you survive that, feel free to read from the pointer */ class DNSPacketMangler diff --git a/pdns/dnsparser.hh b/pdns/dnsparser.hh index 35767c3fa7..88e02d3ddf 100644 --- a/pdns/dnsparser.hh +++ b/pdns/dnsparser.hh @@ -343,7 +343,6 @@ private: }; string simpleCompress(const string& label, const string& root=""); -void simpleExpandTo(const string& label, unsigned int frompos, string& ret); void ageDNSPacket(char* packet, size_t length, uint32_t seconds); void ageDNSPacket(std::string& packet, uint32_t seconds); uint32_t getDNSPacketMinTTL(const char* packet, size_t length); -- 2.47.2