From e77d39cb0b258d114e19756122f8318ca7d9297d Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 23 Mar 2008 06:33:04 +0000 Subject: [PATCH] Remove leftover code that does not work. --- sphinx/environment.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sphinx/environment.py b/sphinx/environment.py index d3d7b1163..59392904d 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -140,18 +140,6 @@ class HandleCodeBlocks(Transform): if len(node.children) == 1 and isinstance(node.children[0], nodes.doctest_block): node.replace_self(node.children[0]) - for node in self.document.traverse(nodes.literal_block): - if not node.parent: - continue - idx = node.parent.index(node) - try: - while isinstance(node.parent[idx+1], nodes.literal_block): - node.children[0] += '\n' + node.parent[idx+1].children[0] - import pdb; pdb.set_trace() - node.parent[idx+1].parent = None - del node.parent[idx+1] - except IndexError: - continue class MyStandaloneReader(standalone.Reader):