From dd6fff08f7ea8ea19ef873070dd2c8f1360150cc Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Sat, 22 Mar 2025 16:35:35 +0800 Subject: [PATCH] FIX:delete no use code jira: STUDIO-11059 Change-Id: Ief3e45f4e6cc079c60161b9b9a55b2152013b70e (cherry picked from commit ab26fb71a50c930c4c3945f91d275dbe78ea8c5c) --- src/slic3r/GUI/DeviceManager.cpp | 4 ++-- src/slic3r/GUI/SyncAmsInfoDialog.cpp | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index 5a205a1468..0dcd28d2ef 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -1149,11 +1149,11 @@ int MachineObject::ams_filament_mapping( return 0; } - for (auto it = result.begin(); it != result.end(); it++) { + /* for (auto it = result.begin(); it != result.end(); it++) {//This code has never been effective before 2025.03.18 if (it->distance >= 6000) { it->tray_id = -1; } - } + }*/ return 0; } diff --git a/src/slic3r/GUI/SyncAmsInfoDialog.cpp b/src/slic3r/GUI/SyncAmsInfoDialog.cpp index 0a489e7f9b..edbaf84ff3 100644 --- a/src/slic3r/GUI/SyncAmsInfoDialog.cpp +++ b/src/slic3r/GUI/SyncAmsInfoDialog.cpp @@ -2355,9 +2355,6 @@ void SyncAmsInfoDialog::update_user_printer() } } } - - MachineObject *obj = dev->get_selected_machine(); - BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "for send task, current printer id = " << obj->dev_id << std::endl; } void SyncAmsInfoDialog::update_printer_combobox(wxCommandEvent &event)