]> granicus.if.org Git - pdns/commitdiff
Remove unused function simpleExpandTo
authorChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Tue, 8 Mar 2016 10:53:00 +0000 (07:53 -0300)
committerChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Tue, 8 Mar 2016 10:53:00 +0000 (07:53 -0300)
pdns/dnsparser.cc
pdns/dnsparser.hh

index 81753618abd63476a70a042be61fd2bf6f7cfdf7..499ddea211c114145b5935e158f6899db9b2f168 100644 (file)
@@ -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
index 35767c3fa73b9af86e040d2b62f70ea03cf264ef..88e02d3ddf573aa1751c0cde6bf9db0ee208789a 100644 (file)
@@ -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);