Browse Source

[213] Cleanups

Remove few methods that are no longer used, update a test comment.
Michal 'vorner' Vaner 13 years ago
parent
commit
bb76c3f643
2 changed files with 1 additions and 20 deletions
  1. 0 16
      src/bin/bind10/bind10_src.py.in
  2. 1 4
      src/bin/bind10/tests/bind10_test.py.in

+ 0 - 16
src/bin/bind10/bind10_src.py.in

@@ -850,22 +850,6 @@ class BoB:
         else:
             self.runnable = False
 
-    # Series of stop_process wrappers
-    def stop_resolver(self):
-        self.stop_process('b10-resolver', 'Resolver')
-
-    def stop_auth(self):
-        self.stop_process('b10-auth', 'Auth')
-
-    def stop_xfrout(self):
-        self.stop_process('b10-xfrout', 'Xfrout')
-
-    def stop_xfrin(self):
-        self.stop_process('b10-xfrin', 'Xfrin')
-
-    def stop_zonemgr(self):
-        self.stop_process('b10-zonemgr', 'Zonemgr')
-
     def shutdown(self):
         """Stop the BoB instance."""
         logger.info(BIND10_SHUTDOWN)

+ 1 - 4
src/bin/bind10/tests/bind10_test.py.in

@@ -278,7 +278,6 @@ class MockBob(BoB):
 
     def start_simple(self, name):
         procmap = { 'b10-xfrout': self.start_xfrout,
-                    'b10-xfrin': self.start_xfrin,
                     'b10-zonemgr': self.start_zonemgr,
                     'b10-stats': self.start_stats,
                     'b10-stats-httpd': self.start_stats_httpd,
@@ -346,9 +345,7 @@ class MockBob(BoB):
                     'b10-cmdctl': self.stop_cmdctl }
         procmap[process]()
 
-    # We don't really use all of these stop_ methods. But it might turn out
-    # someone would add some stop_ method to BoB and we want that one overriden
-    # in case he forgets to update the tests.
+    # Some functions to pretend we stop processes, use by stop_process
     def stop_msgq(self):
         if self.msgq:
             del self.processes[2]