mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Code cleanup
This commit is contained in:
parent
9359d6d3d0
commit
5998ee8f2e
1 changed files with 1 additions and 6 deletions
|
@ -341,9 +341,6 @@ void GCodeViewer::SequentialView::GCodeWindow::load_gcode()
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_file.open(boost::filesystem::path(m_filename));
|
m_file.open(boost::filesystem::path(m_filename));
|
||||||
if (m_file.is_open()) {
|
|
||||||
std::cout << "open file: " << m_filename << "\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
@ -537,10 +534,8 @@ void GCodeViewer::SequentialView::GCodeWindow::render(float top, float bottom, u
|
||||||
#if ENABLE_GCODE_WINDOW_USE_MAPPED_FILE
|
#if ENABLE_GCODE_WINDOW_USE_MAPPED_FILE
|
||||||
void GCodeViewer::SequentialView::GCodeWindow::stop_mapping_file()
|
void GCodeViewer::SequentialView::GCodeWindow::stop_mapping_file()
|
||||||
{
|
{
|
||||||
if (m_file.is_open()) {
|
if (m_file.is_open())
|
||||||
m_file.close();
|
m_file.close();
|
||||||
std::cout << "closed file: " << m_filename << "\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif // ENABLE_GCODE_WINDOW_USE_MAPPED_FILE
|
#endif // ENABLE_GCODE_WINDOW_USE_MAPPED_FILE
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue