Commit 9d5e15ad authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[i18n] cleanup dead code

also fix small bug introduced in b0f6e8c14e7f

branch : stable
parent 83f73a9746f6
......@@ -154,7 +154,7 @@ def _generate_schema_pot(w, vreg, schema, libconfig=None):
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 @@ def _generate_schema_pot(w, vreg, schema, libconfig=None):
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 \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment