changeset 9020:609b803dd252

extensions: remove dead code enabled used to be a boolean, and somehow that bit of code inadvertently slipped through during a refactoring. Effectively dead code, as the condition can never be triggered.
author Cédric Duval <cedricduval@free.fr>
date Sat, 04 Jul 2009 12:06:33 +0200
parents fc5737e49193
children a6225ac2a656
files mercurial/extensions.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/extensions.py	Thu Jul 02 20:03:58 2009 +0200
+++ b/mercurial/extensions.py	Sat Jul 04 12:06:33 2009 +0200
@@ -166,10 +166,6 @@
 
 def enabled():
     '''return a dict of {name: desc} of extensions, and the max name length'''
-
-    if not enabled:
-        return {}, 0
-
     exts = {}
     maxlength = 0
     exthelps = []