Просмотр исходного кода

Removed the layer_height_ranges from the Perl bindings and unit tests.

bubnikv 5 лет назад
Родитель
Сommit
8bf6e69851
2 измененных файлов с 4 добавлено и 9 удалено
  1. 4 4
      xs/t/19_model.t
  2. 0 5
      xs/xsp/Model.xsp

+ 4 - 4
xs/t/19_model.t

@@ -4,7 +4,7 @@ use strict;
 use warnings;
 use warnings;
 
 
 use Slic3r::XS;
 use Slic3r::XS;
-use Test::More tests => 4;
+use Test::More tests => 3;
 
 
 {
 {
     my $model = Slic3r::Model->new;
     my $model = Slic3r::Model->new;
@@ -14,9 +14,9 @@ use Test::More tests => 4;
     $object->origin_translation->translate(10,0,0);
     $object->origin_translation->translate(10,0,0);
     is_deeply \@{$object->origin_translation}, [10,0,0], 'origin_translation is modified by ref';
     is_deeply \@{$object->origin_translation}, [10,0,0], 'origin_translation is modified by ref';
     
     
-    my $lhr = [ [ 5, 10, 0.1 ] ];
-    $object->set_layer_height_ranges($lhr);
-    is_deeply $object->layer_height_ranges, $lhr, 'layer_height_ranges roundtrip';
+#    my $lhr = [ [ 5, 10, 0.1 ] ];
+#    $object->set_layer_height_ranges($lhr);
+#    is_deeply $object->layer_height_ranges, $lhr, 'layer_height_ranges roundtrip';
 }
 }
 
 
 __END__
 __END__

+ 0 - 5
xs/xsp/Model.xsp

@@ -206,11 +206,6 @@ ModelMaterial::attributes()
     Ref<Model> model()
     Ref<Model> model()
         %code%{ RETVAL = THIS->get_model(); %};
         %code%{ RETVAL = THIS->get_model(); %};
 
 
-    t_layer_height_ranges layer_height_ranges()
-        %code%{ RETVAL = THIS->layer_height_ranges; %};
-    void set_layer_height_ranges(t_layer_height_ranges ranges)
-        %code%{ THIS->layer_height_ranges = ranges; %};
-
     Ref<Vec3d> origin_translation()
     Ref<Vec3d> origin_translation()
         %code%{ RETVAL = &THIS->origin_translation; %};
         %code%{ RETVAL = &THIS->origin_translation; %};
     void set_origin_translation(Vec3d* point)
     void set_origin_translation(Vec3d* point)