From fb6f4bcfbde3de656aa95c60853bc6979d715e03 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 14 Dec 2012 13:46:06 +0100 Subject: [PATCH] [REM] unreachable code bzr revid: xmo@openerp.com-20121214124606-nccvun2sf12gu7c7 --- openerp/report/pyPdf/pdf.py | 1 - openerp/report/render/rml2txt/rml2txt.py | 30 +----------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/openerp/report/pyPdf/pdf.py b/openerp/report/pyPdf/pdf.py index 5258e43e154..50317efcec1 100644 --- a/openerp/report/pyPdf/pdf.py +++ b/openerp/report/pyPdf/pdf.py @@ -838,7 +838,6 @@ class PdfFileReader(object): else: # no xref table found at specified location assert False - break def _pairs(self, array): i = 0 diff --git a/openerp/report/render/rml2txt/rml2txt.py b/openerp/report/render/rml2txt/rml2txt.py index f86fee00713..0237a2a5df8 100755 --- a/openerp/report/render/rml2txt/rml2txt.py +++ b/openerp/report/render/rml2txt/rml2txt.py @@ -256,12 +256,10 @@ class _rml_tmpl_frame(_rml_tmpl_tag): self.posx = posx def tag_start(self): return "frame start" - return '
 ' % (self.width+self.posx,self.posx) def tag_end(self): return True def tag_stop(self): return "frame stop" - return '

' def tag_mergeable(self): return False @@ -283,24 +281,7 @@ class _rml_tmpl_draw_string(_rml_tmpl_tag): def tag_start(self): return "draw string \"%s\" @(%d,%d)..\n" %("txt",self.posx,self.posy) - self.pos.sort() - res = '\\table ...' - posx = 0 - i = 0 - for (x,y,align,txt, style, fs) in self.pos: - if align=="left": - pos2 = len(txt)*fs - res+='%s' % (x - posx, style, pos2, txt) - posx = x+pos2 - if align=="right": - res+='%s' % (x - posx, style, txt) - posx = x - if align=="center": - res+='%s' % ((x - posx)*2, style, txt) - posx = 2*x-posx - i+=1 - res+='\\table end' - return res + def merge(self, ds): self.pos+=ds.pos @@ -317,10 +298,6 @@ class _rml_tmpl_draw_lines(_rml_tmpl_tag): def tag_start(self): return "draw lines..\n" - if self.ok: - return '

' % (self.posx+self.width,self.posx,self.style) - else: - return '' class _rml_stylesheet(object): def __init__(self, stylesheet, doc): @@ -457,11 +434,6 @@ class _rml_template(object): def end(self): return "template end\n" - result = '' - while not self.loop: - result += self.frame_start() - result += self.frame_stop() - return result class _rml_doc(object): def __init__(self, node, localcontext=None, images=None, path='.', title=None):