From ab26fb71a50c930c4c3945f91d275dbe78ea8c5c 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 --- 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 0318b1171..cea59d3cf 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -1148,11 +1148,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 d37db7261..82b3a744b 100644 --- a/src/slic3r/GUI/SyncAmsInfoDialog.cpp +++ b/src/slic3r/GUI/SyncAmsInfoDialog.cpp @@ -2353,9 +2353,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)