]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Remove old/unused code - Guard is never used
authorRuben d'Arco <cyclops@prof-x.net>
Sun, 3 Mar 2013 07:02:12 +0000 (08:02 +0100)
committermind04 <mind04@monshouwer.org>
Fri, 12 Jul 2013 15:26:18 +0000 (17:26 +0200)
pdns/packethandler.hh

index 1a00c11967b8a8f1562a19950274908bf091f02f..2ac2a19cda99d73ae9917d01f4b88bde3c4d21fd 100755 (executable)
@@ -54,24 +54,6 @@ class NSEC3PARAMRecordContent;
 class PacketHandler
 {
 public:
-  template<class T> class Guard
-  {
-  public:
-    Guard(T **guard)
-    {
-      d_guard=guard;
-    }
-    
-    ~Guard()
-    {
-      if(*d_guard)
-        delete *d_guard;
-    }
-    
-  private:
-    T **d_guard;
-  };
-
   DNSPacket *questionOrRecurse(DNSPacket *, bool* shouldRecurse); //!< hand us a DNS packet with a question, we'll tell you answer, or that you should recurse
   DNSPacket *question(DNSPacket *); //!< hand us a DNS packet with a question, we give you an answer
   PacketHandler();