Remove unused lines, formatting clean up

This commit is contained in:
thewildmage
2023-07-13 11:33:34 -06:00
parent 03f7686aca
commit 7e1156c68d
2 changed files with 1 additions and 8 deletions

View File

@@ -388,7 +388,6 @@ void CalibPressureAdvancePattern::set_starting_point(const Model& model)
void CalibPressureAdvancePattern::generate_custom_gcodes(Model& model, const Vec3d& origin)
{
std::stringstream gcode;
gcode << "; start pressure advance pattern for layer\n";
refresh_pattern_config(model);
@@ -446,7 +445,7 @@ void CalibPressureAdvancePattern::generate_custom_gcodes(Model& model, const Vec
gcode << writer.travel_to_z(layer_height, "Move to layer height");
}
// // line numbering
// line numbering
if (i == 1) {
gcode << writer.set_pressure_advance(m_params.start);

View File

@@ -8132,7 +8132,6 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
_calib_pa_select_added_objects();
const DynamicPrintConfig& printer_config = wxGetApp().preset_bundle->printers.get_edited_preset().config;
// DynamicPrintConfig* filament_config = &wxGetApp().preset_bundle->filaments.get_edited_preset().config;
DynamicPrintConfig& print_config = wxGetApp().preset_bundle->prints.get_edited_preset().config;
for (const auto opt : SuggestedCalibPressureAdvancePatternConfig().float_pairs) {
@@ -8157,12 +8156,7 @@ void Plater::_calib_pa_pattern(const Calib_Params& params)
);
}
// wxGetApp().get_tab(Preset::TYPE_PRINTER)->update_dirty();
// wxGetApp().get_tab(Preset::TYPE_FILAMENT)->update_dirty();
wxGetApp().get_tab(Preset::TYPE_PRINT)->update_dirty();
// wxGetApp().get_tab(Preset::TYPE_PRINTER)->reload_config();
// wxGetApp().get_tab(Preset::TYPE_FILAMENT)->reload_config();
wxGetApp().get_tab(Preset::TYPE_PRINT)->reload_config();
DynamicPrintConfig full_config = wxGetApp().preset_bundle->full_config();