From: Christian Hofstaedtler Date: Tue, 8 Mar 2016 10:53:00 +0000 (-0300) Subject: Remove unused function simpleExpandTo X-Git-Tag: dnsdist-1.0.0-beta1~134^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3524%2Fhead;p=thirdparty%2Fpdns.git Remove unused function simpleExpandTo --- 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);