From 253b652344d5a8766ba7a92d2170c689a79305c5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 19 Jan 2011 01:02:06 +0000 Subject: [PATCH] Remove unused code. git-svn-id: svn://localhost/ardour2/branches/3.0@8532 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/session.h | 3 --- libs/ardour/session_state.cc | 17 ----------------- 2 files changed, 20 deletions(-) diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index c63e6e3ebe..e5032ad8c2 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -668,9 +668,6 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi void begin_reversible_command (const std::string& cmd_name); void commit_reversible_command (Command* cmd = 0); - UndoTransaction* start_reversible_command (const std::string& cmd_name); - void finish_reversible_command (UndoTransaction&); - void add_command (Command *const cmd) { assert(!_current_trans.empty ()); _current_trans.top()->add_command (cmd); diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index cd9cb7b9b2..6fdaf749ab 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2353,23 +2353,6 @@ Session::all_route_group() const return *_all_route_group; } -UndoTransaction* -Session::start_reversible_command (const string& name) -{ - UndoTransaction* trans = new UndoTransaction(); - trans->set_name(name); - return trans; -} - -void -Session::finish_reversible_command (UndoTransaction& ut) -{ - struct timeval now; - gettimeofday(&now, 0); - ut.set_timestamp(now); - _history.add (&ut); -} - void Session::add_commands (vector const & cmds) {