mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 14:56:00 +08:00
Remove test
This commit is contained in:
parent
58a825dd91
commit
9f395a26a3
@ -1138,23 +1138,6 @@ void GLGizmoEmboss::discard_and_close() {
|
||||
// * Volume containing 3mf fix transformation - needs work around
|
||||
}
|
||||
|
||||
void scopeguard_test() {
|
||||
bool v = false;
|
||||
{
|
||||
ScopeGuard sg;
|
||||
if (!v) {
|
||||
v = true;
|
||||
sg = ScopeGuard([&v]() {
|
||||
if(!v) wxMessageBox("Guard is called twice.");
|
||||
v = false;
|
||||
});
|
||||
if (!v) wxMessageBox("v should be true in condition.");
|
||||
}
|
||||
if (!v) wxMessageBox("v should be true in scope.");
|
||||
}
|
||||
if (v) wxMessageBox("v should NOT be true.");
|
||||
}
|
||||
|
||||
void GLGizmoEmboss::draw_window()
|
||||
{
|
||||
#ifdef ALLOW_DEBUG_MODE
|
||||
@ -1172,8 +1155,6 @@ void GLGizmoEmboss::draw_window()
|
||||
m_imgui->disabled_end();
|
||||
});
|
||||
|
||||
scopeguard_test();
|
||||
|
||||
draw_text_input();
|
||||
draw_model_type();
|
||||
draw_style_list();
|
||||
|
Loading…
x
Reference in New Issue
Block a user