From d49052779fafbc60d8b6b32cb3559f4882d263d1 Mon Sep 17 00:00:00 2001
From: Alessandro Ranellucci <aar@cpan.org>
Date: Tue, 19 Nov 2013 15:55:22 +0100
Subject: [PATCH] Remove useless code (thin walls and gaps are detected by the
 same logic now, so no need for additional checks)

---
 lib/Slic3r/Layer/Region.pm | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm
index 312dce32a..e16d9e8db 100644
--- a/lib/Slic3r/Layer/Region.pm
+++ b/lib/Slic3r/Layer/Region.pm
@@ -306,16 +306,6 @@ sub make_perimeters {
             map $_->clone, @{Slic3r::ExtrusionPath::Collection->new(@paths)->chained_path(0)}
         );
         Slic3r::debugf "  %d thin walls detected\n", scalar(@paths) if $Slic3r::debug;
-        
-        # in the mean time we subtract thin walls from the detected gaps so that we don't
-        # reprocess them, causing overlapping thin walls and zigzag.
-        # Note: this is probably not necessary anymore since we're detecting thin walls
-        # and gaps at the same time
-        @gaps = @{diff_ex(
-            [ map @$_, @gaps ],
-            [ map $_->grow($self->perimeter_flow->scaled_width), @p ],
-            1,
-        )};
     }
     
     $self->_fill_gaps(\@gaps);