web/webconfig.py
changeset 10568 3914388b2d0f
parent 10506 774bf00ae3bb
child 10614 57dfde80df11
--- a/web/webconfig.py	Wed Jul 09 15:50:23 2014 +0200
+++ b/web/webconfig.py	Wed Jul 09 16:32:14 2014 +0200
@@ -280,18 +280,6 @@
                 continue
             yield key, pdef
 
-    # don't use @cached: we want to be able to disable it while this must still
-    # be cached
-    def repository(self, vreg=None):
-        """return the instance's repository object"""
-        try:
-            return self.__repo
-        except AttributeError:
-            from cubicweb.repoapi import get_repository
-            repo = get_repository(config=self, vreg=vreg)
-            self.__repo = repo
-            return repo
-
     def vc_config(self):
         return self.repository().get_versions()