[test] Drop an unused function in cwconfig tests 3.26
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 15 Feb 2018 14:20:11 +0100
branch3.26
changeset 12274 d2e9999861a5
parent 12273 9d08f89a3d85
child 12275 0a60a2ace325
[test] Drop an unused function in cwconfig tests
cubicweb/test/unittest_cwconfig.py
--- a/cubicweb/test/unittest_cwconfig.py	Thu Feb 15 14:19:15 2018 +0100
+++ b/cubicweb/test/unittest_cwconfig.py	Thu Feb 15 14:20:11 2018 +0100
@@ -38,16 +38,6 @@
     CubicWebConfiguration, _expand_modname)
 
 
-def unabsolutize(path):
-    parts = path.split(os.sep)
-    for i, part in reversed(tuple(enumerate(parts))):
-        if part.startswith('cubicweb_'):
-            return os.sep.join([part[len('cubicweb_'):]] + parts[i + 1:])
-        if part.startswith('cubicweb') or part == 'legacy_cubes':
-            return os.sep.join(parts[i + 1:])
-    raise Exception('duh? %s' % path)
-
-
 def templibdir(func):
     """create a temporary directory and insert it in sys.path"""
     @functools.wraps(func)