summaryrefslogtreecommitdiff
path: root/lib/stitch_plan/stitch_plan.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-07-16 19:38:42 -0400
committerLex Neva <github.com@lexneva.name>2018-07-25 21:17:58 -0400
commitb1912157579299212131b86f0b7267d7d91df047 (patch)
tree6d9f10dd7c847e14375ea2f61d32a567650c7563 /lib/stitch_plan/stitch_plan.py
parent754bf54897e309fa21fa61bc7a626cde71a00f97 (diff)
tidy up code
Diffstat (limited to 'lib/stitch_plan/stitch_plan.py')
-rw-r--r--lib/stitch_plan/stitch_plan.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py
index 5d847ad2..1a466295 100644
--- a/lib/stitch_plan/stitch_plan.py
+++ b/lib/stitch_plan/stitch_plan.py
@@ -1,5 +1,3 @@
-from copy import copy
-
from .stitch import Stitch
from .stop import process_stop
from .trim import process_trim
@@ -256,11 +254,4 @@ class ColorBlock(object):
new_color_block = ColorBlock(self.color, self.stitches[index:])
del self.stitches[index:]
- # If we're splitting in the middle of a run of stitches, we don't
- # want a gap to appear in the preview and the PDF printout, so
- # add an extra stitch to bridge the gap. Technically this will
- # result in a double needle penetration but it's no big deal.
- if not self.last_stitch.trim:
- self.add_stitch(copy(new_color_block.stitches[0]))
-
return new_color_block