Remove test
This commit is contained in:
parent
58a825dd91
commit
9f395a26a3
1 changed files with 0 additions and 19 deletions
|
@ -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…
Add table
Reference in a new issue