remove unused _trim_lineto
This commit is contained in:
parent
34fffafa3f
commit
6869ae40e4
1 changed files with 0 additions and 3 deletions
|
@ -134,9 +134,6 @@ class SVGImage:
|
||||||
# remove trailing zeros from a decimal – yes this is slow, but it greatly speeds up cairo rendering
|
# remove trailing zeros from a decimal – yes this is slow, but it greatly speeds up cairo rendering
|
||||||
return re.sub(r'([0-9]+)((\.[1-9])[0-9]+|\.[0-9]+)?', r'\1\3', data)
|
return re.sub(r'([0-9]+)((\.[1-9])[0-9]+|\.[0-9]+)?', r'\1\3', data)
|
||||||
|
|
||||||
def _trim_lineto(self, data):
|
|
||||||
return re.sub(r'L (-?([0-9]+)(.[0-9]+)?,(-?[0-9]+)(.[0-9]+)?) L', r'L \1 ', data)
|
|
||||||
|
|
||||||
def _geometry_to_svg(self, geom):
|
def _geometry_to_svg(self, geom):
|
||||||
# scale and move geometry and create svg code for it
|
# scale and move geometry and create svg code for it
|
||||||
if isinstance(geom, Polygon):
|
if isinstance(geom, Polygon):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue