From ab58e631ef17bf2ca936b9eea36e6f5dffb4bb88 Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Wed, 25 May 2022 09:10:29 +0200 Subject: [PATCH] fix ../src/libslic3r/CutSurface.cpp:879:72: warning: '&&' within '||' [-Wlogical-op-parentheses] ../src/libslic3r/CutSurface.cpp:880:72: warning: '&&' within '||' [-Wlogical-op-parentheses] ../src/libslic3r/CutSurface.cpp:881:72: warning: '&&' within '||' [-Wlogical-op-parentheses] ../src/libslic3r/CutSurface.cpp:877:22: warning: unused variable 'is_positive_type_direction' [-Wunused-variable] --- src/libslic3r/CutSurface.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/libslic3r/CutSurface.cpp b/src/libslic3r/CutSurface.cpp index afb2a68e4c..51e8d3d348 100644 --- a/src/libslic3r/CutSurface.cpp +++ b/src/libslic3r/CutSurface.cpp @@ -874,12 +874,6 @@ void priv::set_face_type(FaceTypeMap &face_type_map, uint32_t i_to = shape_to.point_index; IntersectingElement::Type type_from = shape_from.get_type(); IntersectingElement::Type type_to = shape_to.get_type(); - auto is_positive_type_direction = [&type_from, &type_to]()->bool { - return - type_from == IntersectingElement::Type::edge_1 && type_to == IntersectingElement::Type::face_1 || - type_from == IntersectingElement::Type::face_1 && type_to == IntersectingElement::Type::edge_2 || - type_from == IntersectingElement::Type::edge_2 && type_to == IntersectingElement::Type::face_2 ; - }; if (i_from == i_to && type_from == type_to) { // intersecting element must be face assert(type_from == IntersectingElement::Type::face_1 ||