Commit 159d0ab2 authored by Stefan Behnel's avatar Stefan Behnel

remove dead code

parent b2f4e614
...@@ -17,7 +17,6 @@ special_chars = [ ...@@ -17,7 +17,6 @@ special_chars = [
(u'>', u'\xF1', u'>'), (u'>', u'\xF1', u'>'),
] ]
line_pos_comment = re.compile(r'/\*.*?<<<<<<<<<<<<<<.*?\*/\n*', re.DOTALL)
class AnnotationCCodeWriter(CCodeWriter): class AnnotationCCodeWriter(CCodeWriter):
...@@ -169,7 +168,6 @@ function toggleDiv(id) { ...@@ -169,7 +168,6 @@ function toggleDiv(id) {
f.write(line.rstrip()) f.write(line.rstrip())
f.write(u'</pre>\n') f.write(u'</pre>\n')
code = re.sub(line_pos_comment, '', code) # inline annotations are redundant
f.write(u"<pre id='line%s' class='code' style='background-color: #%s'>%s</pre>" % (k, color, code)) f.write(u"<pre id='line%s' class='code' style='background-color: #%s'>%s</pre>" % (k, color, code))
f.write(u'</body></html>\n') f.write(u'</body></html>\n')
f.close() f.close()
......
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