From 8bf6e69851657bbd9242d54d8e08f706fcdb1874 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 20 Jun 2019 16:28:37 +0200 Subject: [PATCH] Removed the layer_height_ranges from the Perl bindings and unit tests. --- xs/t/19_model.t | 8 ++++---- xs/xsp/Model.xsp | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/xs/t/19_model.t b/xs/t/19_model.t index d6f6d97a18b..48a000e4633 100644 --- a/xs/t/19_model.t +++ b/xs/t/19_model.t @@ -4,7 +4,7 @@ use strict; use warnings; use Slic3r::XS; -use Test::More tests => 4; +use Test::More tests => 3; { my $model = Slic3r::Model->new; @@ -14,9 +14,9 @@ use Test::More tests => 4; $object->origin_translation->translate(10,0,0); 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__ diff --git a/xs/xsp/Model.xsp b/xs/xsp/Model.xsp index 6a2cc608024..af4cdce0644 100644 --- a/xs/xsp/Model.xsp +++ b/xs/xsp/Model.xsp @@ -206,11 +206,6 @@ ModelMaterial::attributes() Ref 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 origin_translation() %code%{ RETVAL = &THIS->origin_translation; %}; void set_origin_translation(Vec3d* point)