extensions: remove dead code
authorCédric Duval <cedricduval@free.fr>
Sat, 04 Jul 2009 12:06:33 +0200
changeset 9020 609b803dd252
parent 9019 fc5737e49193
child 9022 a6225ac2a656
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.
mercurial/extensions.py
--- 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 = []