]> granicus.if.org Git - pdns/commitdiff
clean up the ueberbackend constructor - it is unclear how this could *ever* have...
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 8 May 2010 20:17:52 +0000 (20:17 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 8 May 2010 20:17:52 +0000 (20:17 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1598 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/ueberbackend.cc
pdns/ueberbackend.hh

index 28c7a69df37c3974dcaba07ed7b002b13e66e962..a2ac2a59d3417b7923c7f110e019ec1fe7d1939d 100644 (file)
@@ -190,11 +190,6 @@ void UeberBackend::setStatus(const string &st)
   s_status=st;
 }
 
-UeberBackend::UeberBackend()
-{
-  UeberBackend("default");
-}
-
 UeberBackend::UeberBackend(const string &pname)
 {
   programname=pname;
index 3fdd8cdbf625ea28cce23be1f3270c20c9ce9a34..e2fc6788fc759a2d9c66f5d54afc433a287004c5 100644 (file)
@@ -36,7 +36,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #endif // WIN32
-
+#include <boost/utility.hpp>
 #include "dnspacket.hh"
 #include "dnsbackend.hh"
 
@@ -51,11 +51,10 @@ class BackendReporter;
     The UeberBackend is transparent for exceptions, which should fall straight through.
 */
 
-class UeberBackend : public DNSBackend
+class UeberBackend : public DNSBackend, public boost::noncopyable
 {
 public:
-  UeberBackend();
-  UeberBackend(const string &);
+  UeberBackend(const string &pname="default");
   ~UeberBackend();
   typedef DNSBackend *BackendMaker(); //!< typedef for functions returning pointers to new backends
 
@@ -64,7 +63,7 @@ public:
   /** contains BackendReporter objects, which contain maker functions and information about
       weather a module has already been reported to existing instances of the UeberBackend
   */
-  static vector<BackendReporter>backendmakers;
+//  static vector<BackendReporter>backendmakers;
 
   /** Tracks all created UeberBackend instances for us. We use this vector to notify
       existing threads of new modules 
@@ -79,10 +78,9 @@ public:
   static void *DynListener(void *);
   static void go(void);
 
-  
   /** This contains all registered backends. The DynListener modifies this list for us when
       new modules are loaded */
-  vector<DNSBackend*>backends; 
+  vector<DNSBackend*> backends; 
 
   void die();
   void cleanup();