summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-05-28 22:52:10 +0200
committerJan Pokorný <jpokorny@redhat.com>2015-05-29 20:00:56 +0200
commit30a527cf03d2f639c7f11953e3a6a5aefc36bc37 (patch)
treee6de4469c5765386b243ea64b66da448545fc016
parenta218ead71d7f53a2aa7b134573792dcf3579bb40 (diff)
downloadclufter-30a527cf03d2f639c7f11953e3a6a5aefc36bc37.tar.gz
clufter-30a527cf03d2f639c7f11953e3a6a5aefc36bc37.tar.xz
clufter-30a527cf03d2f639c7f11953e3a6a5aefc36bc37.zip
filter: _xslt_preprocess drop unused code
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--filter.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/filter.py b/filter.py
index 4c9b32d..013eb5a 100644
--- a/filter.py
+++ b/filter.py
@@ -608,22 +608,13 @@ class XMLFilter(Filter, MetaPlugin):
elif do_mix > 1 and will_mix: # and not parent
do_mix = 1
- #toplevel = []
- #if len(ret) and parent:
- # top = filter(lambda x: x.tag in TOP_LEVEL_XSL, ret)
- # for e in top:
- # toplevel.append(e)
- # ret.remove(e)
-
# note that when do_mix, nested top_levels are actually propagated
# back, which is the inverse of what we are doing here
if parent and isinstance(parent[0], etree._Element) and not do_mix:
top = filter(lambda x: x.tag in TOP_LEVEL_XSL, parent[0])
for e in top:
- #print "at", sym, "appending", etree.tostring(e)
+ #print "at", etree.tostring(ret), "appending", etree.tostring(e)
ret.append(deepcopy(e))
- #for e in toplevel:
- # parent[0].append(e)
log.debug("hooks {0}".format(hooks))
return (ret, hooks, do_mix)