remove unused Automatable::automation_interval and related code

git-svn-id: svn://localhost/ardour2/branches/3.0@13534 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-11-19 22:03:50 +00:00
parent 8b3d0f04c1
commit c7a36486af
3 changed files with 0 additions and 17 deletions

View file

@ -76,19 +76,6 @@ public:
const std::set<Evoral::Parameter>& what_can_be_automated() const { return _can_automate_list; }
void what_has_existing_automation (std::set<Evoral::Parameter>&) const;
inline bool should_snapshot (framepos_t now) {
return (_last_automation_snapshot > now
|| (now - _last_automation_snapshot) > _automation_interval);
}
static void set_automation_interval (framecnt_t frames) {
_automation_interval = frames;
}
static framecnt_t automation_interval() {
return _automation_interval;
}
static const std::string xml_node_name;
int set_automation_xml_state (const XMLNode&, Evoral::Parameter default_param);
@ -107,7 +94,6 @@ public:
std::set<Evoral::Parameter> _can_automate_list;
framepos_t _last_automation_snapshot;
static framecnt_t _automation_interval;
private:
PBD::ScopedConnectionList _control_connections; ///< connections to our controls' signals

View file

@ -42,7 +42,6 @@ using namespace std;
using namespace ARDOUR;
using namespace PBD;
framecnt_t Automatable::_automation_interval = 0;
const string Automatable::xml_node_name = X_("Automation");
Automatable::Automatable(Session& session)

View file

@ -1341,8 +1341,6 @@ Session::set_frame_rate (framecnt_t frames_per_second)
sync_time_vars();
Automatable::set_automation_interval (ceil ((double) frames_per_second * 0.001 * Config->get_automation_interval_msecs()));
clear_clicks ();
// XXX we need some equivalent to this, somehow