From ca78bbd88a27577fa2b1acce75b66f85035b8219 Mon Sep 17 00:00:00 2001
From: Mark Hindess <soft-github@temporalanomaly.com>
Date: Sun, 1 Jul 2012 23:15:17 +0100
Subject: [PATCH] Use Slic3r::Geometry polyline_lines rather than duplicate
 implementation.

If it is good enough for polygons, it should be good enough for polylines.
---
 lib/Slic3r/Polyline.pm | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/lib/Slic3r/Polyline.pm b/lib/Slic3r/Polyline.pm
index 6d257ff9f..2c3f9f88c 100644
--- a/lib/Slic3r/Polyline.pm
+++ b/lib/Slic3r/Polyline.pm
@@ -51,15 +51,7 @@ sub id {
 
 sub lines {
     my $self = shift;
-    my @lines = ();
-    my $previous_point;
-    foreach my $point (@$self) {
-        if ($previous_point) {
-            push @lines, Slic3r::Line->new($previous_point, $point);
-        }
-        $previous_point = $point;
-    }
-    return @lines;
+    return polyline_lines($self);
 }
 
 sub boost_linestring {