From aa3f7f24147fe0857ed4f0b08a3da4e08a0f7e3e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 25 Feb 2020 20:09:47 +0100 Subject: [PATCH] Remove undo function from global namespace --- libs/pbd/pbd/undo.h | 2 -- libs/pbd/undo.cc | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 ()) {