Skip to content

Commit

Permalink
Removed default mode which is no more used
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Jan 10, 2024
1 parent 284d171 commit 0511c4b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
5 changes: 0 additions & 5 deletions include/settings/EnumSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,6 @@ enum class PrimeTowerMethod
*/
NONE,

/*!
* Basic full prime tower with only discs.
*/
DEFAULT,

/*!
* Prime tower that minimizes time and used filament as much as possible.
*/
Expand Down
12 changes: 0 additions & 12 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,18 +1526,6 @@ std::vector<ExtruderUse>
case PrimeTowerMethod::NONE:
break;

case PrimeTowerMethod::DEFAULT:
if (extruder_nr == storage.primeTower.extruder_order_[0] && layer_nr >= 0 && layer_nr <= storage.max_print_height_second_to_last_extruder)
{
// The outermost prime tower extruder is always used if there is a prime tower, apart on layers with negative index (e.g. for the raft)
prime = ExtruderPrime::Prime;
}
else if (extruder_is_used_on_this_layer[extruder_nr])
{
prime = ExtruderPrime::Prime;
}
break;

case PrimeTowerMethod::OPTIMIZED_CONSISTENT:
if (extruder_is_used_on_this_layer[extruder_nr] && extruder_nr != last_extruder)
{
Expand Down
2 changes: 1 addition & 1 deletion src/PrimeTower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void PrimeTower::generatePaths_denseInfill(std::vector<coord_t>& cumulative_inse

// Generate the base outside extra rings
if ((method == PrimeTowerMethod::OPTIMIZED
|| (extruder_nr == extruder_order_.front() && (method == PrimeTowerMethod::OPTIMIZED_CONSISTENT || method == PrimeTowerMethod::DEFAULT)))
|| (extruder_nr == extruder_order_.front() && method == PrimeTowerMethod::OPTIMIZED_CONSISTENT))
&& (base_enabled || has_raft) && base_extra_radius > 0 && base_height > 0)
{
for (coord_t z = 0; z < base_height; z += layer_height)
Expand Down
6 changes: 1 addition & 5 deletions src/settings/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,7 @@ template<>
PrimeTowerMethod Settings::get<PrimeTowerMethod>(const std::string& key) const
{
const std::string& value = get<std::string>(key);
if (value == "default")
{
return PrimeTowerMethod::DEFAULT;
}
else if (value == "optimized")
if (value == "optimized")
{
return PrimeTowerMethod::OPTIMIZED;
}
Expand Down

0 comments on commit 0511c4b

Please sign in to comment.