From 5998ee8f2e473ccb1d29aa976b04eec79b152fdd Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 8 Mar 2021 09:29:47 +0100 Subject: [PATCH] Code cleanup --- src/slic3r/GUI/GCodeViewer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 4c934624dd..259f378992 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -341,9 +341,6 @@ void GCodeViewer::SequentialView::GCodeWindow::load_gcode() try { m_file.open(boost::filesystem::path(m_filename)); - if (m_file.is_open()) { - std::cout << "open file: " << m_filename << "\n"; - } } catch (...) { @@ -537,10 +534,8 @@ void GCodeViewer::SequentialView::GCodeWindow::render(float top, float bottom, u #if ENABLE_GCODE_WINDOW_USE_MAPPED_FILE void GCodeViewer::SequentialView::GCodeWindow::stop_mapping_file() { - if (m_file.is_open()) { + if (m_file.is_open()) m_file.close(); - std::cout << "closed file: " << m_filename << "\n"; - } } #endif // ENABLE_GCODE_WINDOW_USE_MAPPED_FILE