[i18n] cleanup dead code stable cubicweb-centos-version-3.17.4-1 cubicweb-debian-version-3.17.4-1 cubicweb-version-3.17.4
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 30 Jul 2013 17:09:02 +0200
branchstable
changeset 9203 c7ba8e5d2e45
parent 9202 83f73a9746f6
child 9204 5edd09229890
[i18n] cleanup dead code also fix small bug introduced in b0f6e8c14e7f
devtools/devctl.py
--- a/devtools/devctl.py	Tue Jul 30 16:48:57 2013 +0200
+++ b/devtools/devctl.py	Tue Jul 30 17:09:02 2013 +0200
@@ -154,7 +154,7 @@
         for cstrtype in CONSTRAINTS:
             add_msg(w, cstrtype)
 
-        isinlib = lambda: False
+        is_in_lib = lambda: False
     done = set()
     for eschema in sorted(schema.entities()):
         if eschema.type in libschema:
@@ -177,14 +177,6 @@
                 continue
             for tschema in targetschemas:
 
-                def isinlib(eschema, rschema, role, tschema):
-                    if libconfig is not None:
-                        for libafs in libafss:
-                            if 'main_inlined' in libafs.etype_get(
-                                eschema, rschema, role, tschema):
-                                return True
-                    return False
-
                 for afs in afss:
                     fsections = afs.etype_get(eschema, rschema, role, tschema)
                     if 'main_inlined' in fsections and not \