Skip to content

Commit 2acd858

Browse files
authoredAug 18, 2024
Remove unused parameter from place_seam method (SoftFever#6421)
1 parent 12c4ff0 commit 2acd858

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed
 

‎src/libslic3r/GCode.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -4493,8 +4493,7 @@ std::string GCode::extrude_loop(ExtrusionLoop loop, std::string description, dou
44934493
float seam_overhang = std::numeric_limits<float>::lowest();
44944494
if (!m_config.spiral_mode && description == "perimeter") {
44954495
assert(m_layer != nullptr);
4496-
bool is_outer_wall_first = m_config.wall_sequence == WallSequence::OuterInner;
4497-
m_seam_placer.place_seam(m_layer, loop, is_outer_wall_first, this->last_pos(), seam_overhang);
4496+
m_seam_placer.place_seam(m_layer, loop, this->last_pos(), seam_overhang);
44984497
} else
44994498
loop.split_at(last_pos, false);
45004499

‎src/libslic3r/GCode/SeamPlacer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ void SeamPlacer::init(const Print &print, std::function<void(void)> throw_if_can
14861486
}
14871487
}
14881488

1489-
void SeamPlacer::place_seam(const Layer *layer, ExtrusionLoop &loop, bool external_first,
1489+
void SeamPlacer::place_seam(const Layer *layer, ExtrusionLoop &loop,
14901490
const Point &last_pos, float& overhang) const {
14911491
using namespace SeamPlacerImpl;
14921492
const PrintObject *po = layer->object();

‎src/libslic3r/GCode/SeamPlacer.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class SeamPlacer {
143143

144144
void init(const Print &print, std::function<void(void)> throw_if_canceled_func);
145145

146-
void place_seam(const Layer *layer, ExtrusionLoop &loop, bool external_first, const Point &last_pos, float& overhang) const;
146+
void place_seam(const Layer *layer, ExtrusionLoop &loop, const Point &last_pos, float& overhang) const;
147147
private:
148148
void gather_seam_candidates(const PrintObject *po, const SeamPlacerImpl::GlobalModelInfo &global_model_info);
149149
void calculate_candidates_visibility(const PrintObject *po,

0 commit comments

Comments
 (0)