mercurial/exthelper.py
changeset 41045 c1476d095d57
parent 41044 fe606f2dcae9
child 41046 f5ec93f69171
--- a/mercurial/exthelper.py	Sat Dec 22 21:06:24 2018 -0500
+++ b/mercurial/exthelper.py	Sat Dec 22 22:26:36 2018 -0500
@@ -13,7 +13,6 @@
 
 from . import (
     commands,
-    configitems,
     extensions,
     fileset as filesetmod,
     registrar,
@@ -54,12 +53,7 @@
             self.command._doregister = _newdoregister
 
         self.configtable = {}
-        self._configitem = registrar.configitem(self.configtable)
-
-    def configitem(self, section, config, default=configitems.dynamicdefault):
-        """Register a config item.
-        """
-        self._configitem(section, config, default=default)
+        self.configitem = registrar.configitem(self.configtable)
 
     def merge(self, other):
         self._uicallables.extend(other._uicallables)