13
0

remove debug output

This commit is contained in:
Paul Davis 2023-09-11 10:26:36 -06:00
parent 28af3c2024
commit c7e5f38aa5

View File

@ -3375,7 +3375,6 @@ Session::begin_reversible_command (GQuark q)
/* start a new transaction */ /* start a new transaction */
assert (_current_trans_quarks.empty ()); assert (_current_trans_quarks.empty ());
std::cerr << "D\n";
_current_trans = new UndoTransaction(); _current_trans = new UndoTransaction();
_current_trans->set_name (g_quark_to_string (q)); _current_trans->set_name (g_quark_to_string (q));
} else { } else {
@ -3389,14 +3388,11 @@ void
Session::abort_reversible_command () Session::abort_reversible_command ()
{ {
if (!_current_trans) { if (!_current_trans) {
std::cerr << "abort with no current reversible command\n";
PBD::stacktrace (std::cerr, 12);
return; return;
} }
DEBUG_TRACE (DEBUG::UndoHistory, string_compose ("Abort Reversible Command: %1\n", _current_trans->name ())); DEBUG_TRACE (DEBUG::UndoHistory, string_compose ("Abort Reversible Command: %1\n", _current_trans->name ()));
_current_trans->clear(); _current_trans->clear();
delete _current_trans; delete _current_trans;
PBD::stacktrace (std::cerr, 12);
_current_trans = nullptr; _current_trans = nullptr;
_current_trans_quarks.clear(); _current_trans_quarks.clear();
} }
@ -3452,7 +3448,6 @@ Session::commit_reversible_command (Command *cmd)
"added to current transaction: %1\n", "added to current transaction: %1\n",
_current_trans->name ())); _current_trans->name ()));
delete _current_trans; delete _current_trans;
std::cerr << "B\n";
_current_trans = nullptr; _current_trans = nullptr;
return; return;
} }
@ -3463,9 +3458,7 @@ Session::commit_reversible_command (Command *cmd)
DEBUG_TRACE (DEBUG::UndoHistory, DEBUG_TRACE (DEBUG::UndoHistory,
string_compose ("Commit Reversible Command, add to history %1\n", string_compose ("Commit Reversible Command, add to history %1\n",
_current_trans->name ())); _current_trans->name ()));
PBD::stacktrace (std::cerr, 12);
_history.add (_current_trans); _history.add (_current_trans);
std::cerr << "C\n";
_current_trans = nullptr; _current_trans = nullptr;
} }