Browse Source

Removed useless code

Alessandro Ranellucci 11 years ago
parent
commit
4474595629
2 changed files with 0 additions and 16 deletions
  1. 0 10
      lib/Slic3r/ExPolygon.pm
  2. 0 6
      lib/Slic3r/Polygon.pm

+ 0 - 10
lib/Slic3r/ExPolygon.pm

@@ -128,16 +128,6 @@ sub encloses_line {
     }
 }
 
-sub point_on_segment {
-    my $self = shift;
-    my ($point) = @_;
-    for (@$self) {
-        my $line = $_->point_on_segment($point);
-        return $line if $line;
-    }
-    return undef;
-}
-
 sub bounding_box {
     my $self = shift;
     return $self->contour->bounding_box;

+ 0 - 6
lib/Slic3r/Polygon.pm

@@ -56,12 +56,6 @@ sub remove_acute_vertices {
     bless $_, 'Slic3r::Point' for @$self;
 }
 
-sub point_on_segment {
-    my $self = shift;
-    my ($point) = @_;
-    return polygon_segment_having_point($self, $point);
-}
-
 sub encloses_point {
     my $self = shift;
     my ($point) = @_;