Backout 2b3846b0c06c for bad bug number in commit message
authorGregory Szorc <gps@mozilla.com>
Mon, 09 Sep 2013 12:43:45 -0700
changeset 146190 bbb2f32dd205766763c9d38e8668062f7285027f
parent 146189 8f055452c4d9eea4897dd2a9ea0ea9be58721592
child 146191 8dc5604a4a880179fb4bf4f2e5e98a036561d936
push id33496
push usergszorc@mozilla.com
push dateMon, 09 Sep 2013 19:45:17 +0000
treeherdermozilla-inbound@8dc5604a4a88 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone26.0a1
backs out2b3846b0c06ce40658f50a84e79ab931cb82c831
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backout 2b3846b0c06c for bad bug number in commit message
python/mach/mach/registrar.py
--- a/python/mach/mach/registrar.py
+++ b/python/mach/mach/registrar.py
@@ -33,33 +33,11 @@ class MachRegistrar(object):
 
     def register_settings_provider(self, cls):
         self.settings_providers.add(cls)
 
     def register_category(self, name, title, description, priority=50):
         self.categories[name] = (title, description, priority)
         self.commands_by_category[name] = set()
 
-    def dispatch(self, name, context=None, **args):
-        """Dispatch/run a command.
-
-        Commands can use this to call other commands.
-        """
-
-        # TODO The logic in this function overlaps with code in
-        # mach.main.Main._run() and should be consolidated.
-        handler = self.command_handlers[name]
-        cls = handler.cls
-
-        if handler.pass_context and not context:
-            raise Exception('mach command class requires context.')
-
-        if handler.pass_context:
-            instance = cls(context)
-        else:
-            instance = cls()
-
-        fn = getattr(instance, handler.method)
-
-        return fn(**args) or 0
-
 
 Registrar = MachRegistrar()
+