[rem] useless 'caching' indirection which doesn't cache anything
authorXavier Morel <xmo@tinyerp.com>
Sat, 12 Dec 2009 16:18:00 +0000 (17:18 +0100)
committerXavier Morel <xmo@tinyerp.com>
Sat, 12 Dec 2009 16:18:00 +0000 (17:18 +0100)
bzr revid: xmo@tinyerp.com-20091212161800-r09hukkkibib4byf

setup.py

index abbaa11..4822de9 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@ def check_modules():
         print '\n'.join(errors)
         sys.exit(1)
 
-def _find_addons():
+def find_addons():
     for (dp, dn, names) in os.walk(join('bin', 'addons')):
         if '__terp__.py' in names:
             modname = os.path.basename(dp)
@@ -95,14 +95,6 @@ def _find_addons():
     except:
         pass
 
-__found_addons = None
-
-# Cache the results of _find_addons() and return them
-def find_addons(found_addons = None):
-    if not found_addons:
-        found_addons = _find_addons()
-    return found_addons
-
 def data_files():
     '''Build list of data files to be installed'''
     files = []