diff --git a/libs/pbd/pbd/undo.h b/libs/pbd/pbd/undo.h index 851818f36d..872c865f08 100644 --- a/libs/pbd/pbd/undo.h +++ b/libs/pbd/pbd/undo.h @@ -79,8 +79,6 @@ private: struct timeval _timestamp; bool _clearing; - friend void command_death (UndoTransaction*, Command*); - void about_to_explicitly_delete (); }; diff --git a/libs/pbd/undo.cc b/libs/pbd/undo.cc index 4a4ca81a3a..0c1528aedb 100644 --- a/libs/pbd/undo.cc +++ b/libs/pbd/undo.cc @@ -52,7 +52,7 @@ UndoTransaction::~UndoTransaction () clear (); } -void +static void command_death (UndoTransaction* ut, Command* c) { if (ut->clearing ()) {