From 7e8f45a302a501cf60cf67b0eefbded2f6b03c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Thu, 4 Jan 2024 15:06:23 +0100 Subject: [PATCH] Remove unused variable 'some_compatible' from ExtruderFilaments::update_compatible_internal(). This variable hasn't been used since the beginning. --- src/libslic3r/Preset.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index 44c29c32c2..75dda312ef 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -2253,7 +2253,6 @@ size_t ExtruderFilaments::update_compatible_internal(const PresetWithVendorProfi const ConfigOption* opt = active_printer.preset.config.option("nozzle_diameter"); if (opt) config.set_key_value("num_extruders", new ConfigOptionInt((int)static_cast(opt)->values.size())); - bool some_compatible = false; // Adjust printer preset config to the first extruder from m_extruder_id Preset printer_preset_adjusted = active_printer.preset; @@ -2281,7 +2280,6 @@ size_t ExtruderFilaments::update_compatible_internal(const PresetWithVendorProfi const PresetWithVendorProfile this_preset_with_vendor_profile = m_filaments->get_preset_with_vendor_profile(*preset); bool was_compatible = extr_filament.is_compatible; extr_filament.is_compatible = is_compatible_with_printer(this_preset_with_vendor_profile, active_printer_adjusted, &config); - some_compatible |= extr_filament.is_compatible; if (active_print != nullptr) extr_filament.is_compatible &= is_compatible_with_print(this_preset_with_vendor_profile, *active_print, active_printer_adjusted); if (!extr_filament.is_compatible && is_selected &&