Patchwork [3,of,3] dispatch: remove unused _loaded

login
register
mail settings
Submitter Katsunori FUJIWARA
Date June 23, 2017, 5:48 p.m.
Message ID <451cc6a8cafb173b015d.1498240137@speaknoevil>
Download mbox | patch
Permalink /patch/21632/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - June 23, 2017, 5:48 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1498239561 -32400
#      Sat Jun 24 02:39:21 2017 +0900
# Node ID 451cc6a8cafb173b015d76fc667ef111db297dc3
# Parent  bd02107d5a20adff17f744a422b2530284215a7a
dispatch: remove unused _loaded

Now, there is no user for dispatch._loaded.

Patch

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -720,8 +720,6 @@  def _checkshellalias(lui, ui, args):
         return lambda: runcommand(lui, None, cmd, args[:1], ui, options, d,
                                   [], {})
 
-_loaded = set()
-
 def _dispatch(req):
     args = req.args
     ui = req.ui
@@ -746,8 +744,7 @@  def _dispatch(req):
     profile = lui.configbool('profiling', 'enabled')
     with profiling.profile(lui, enabled=profile) as profiler:
         # Configure extensions in phases: uisetup, extsetup, cmdtable, and
-        # reposetup. Programs like TortoiseHg will call _dispatch several
-        # times so we keep track of configured extensions in _loaded.
+        # reposetup
         extensions.loadall(lui)
         # Propagate any changes to lui.__class__ by extensions
         ui.__class__ = lui.__class__