summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-25 20:09:47 +0100
committerRobin Gareus <robin@gareus.org>2020-02-25 20:09:47 +0100
commitaa3f7f24147fe0857ed4f0b08a3da4e08a0f7e3e (patch)
treee20df1d2b5bd146c82a17b6c1d5ebd8277e57ec2 /libs/pbd
parent7532571fb27bda80563d0deb988863fb941ac2a0 (diff)
Remove undo function from global namespace
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/pbd/undo.h2
-rw-r--r--libs/pbd/undo.cc2
2 files changed, 1 insertions, 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 ()) {