Kaynağa Gözat

Remove unused methods

Mike Naberezny 10 yıl önce
ebeveyn
işleme
48be536f8c
1 değiştirilmiş dosya ile 0 ekleme ve 19 silme
  1. 0 19
      supervisor/options.py

+ 0 - 19
supervisor/options.py

@@ -464,13 +464,6 @@ class ServerOptions(Options):
         self.stdout.write('%s\n' % VERSION)
         self.exit(0)
 
-    def getLogger(self, *args, **kwargs):
-        """
-        A proxy to loggers.getLogger so the options might customize log setup.
-        Used by tests to mock log setup.
-        """
-        return loggers.getLogger(*args, **kwargs)
-
     def realize(self, *arg, **kw):
         Options.realize(self, *arg, **kw)
         section = self.configroot.supervisord
@@ -1643,18 +1636,6 @@ class ClientOptions(Options):
 
         return section
 
-    def getServerProxy(self):
-        # mostly put here for unit testing
-        return xmlrpclib.ServerProxy(
-            # dumbass ServerProxy won't allow us to pass in a non-HTTP url,
-            # so we fake the url we pass into it and always use the transport's
-            # 'serverurl' to figure out what to attach to
-            'http://127.0.0.1',
-            transport = xmlrpc.SupervisorTransport(self.username,
-                                                   self.password,
-                                                   self.serverurl)
-            )
-
 _marker = []
 
 class UnhosedConfigParser(ConfigParser.RawConfigParser):