mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
don't bother with old MIDI port data in ardour.rc
result: we lose connections to global MIDI ports in older sessions. may fix this in the future
This commit is contained in:
parent
07c63fb2d7
commit
dfac01bdd4
2 changed files with 0 additions and 8 deletions
|
|
@ -53,7 +53,6 @@ class RCConfiguration : public Configuration
|
|||
|
||||
XMLNode* control_protocol_state () { return _control_protocol_state; }
|
||||
std::list<XMLNode*> midi_port_states () { return _midi_port_states; }
|
||||
std::list<XMLNode*> old_midi_port_states () { return _old_midi_port_states; }
|
||||
|
||||
/* define accessor methods */
|
||||
|
||||
|
|
@ -87,7 +86,6 @@ class RCConfiguration : public Configuration
|
|||
state once the audio engine and hence ports are up.
|
||||
*/
|
||||
std::list<XMLNode*> _midi_port_states;
|
||||
std::list<XMLNode*> _old_midi_port_states;
|
||||
};
|
||||
|
||||
/* XXX: rename this */
|
||||
|
|
|
|||
|
|
@ -65,10 +65,6 @@ RCConfiguration::RCConfiguration ()
|
|||
|
||||
RCConfiguration::~RCConfiguration ()
|
||||
{
|
||||
for (list<XMLNode*>::iterator i = _old_midi_port_states.begin(); i != _old_midi_port_states.end(); ++i) {
|
||||
delete *i;
|
||||
}
|
||||
|
||||
for (list<XMLNode*>::iterator i = _midi_port_states.begin(); i != _midi_port_states.end(); ++i) {
|
||||
delete *i;
|
||||
}
|
||||
|
|
@ -248,8 +244,6 @@ RCConfiguration::set_state (const XMLNode& root, int version)
|
|||
SessionMetadata::Metadata()->set_state (*node, version);
|
||||
} else if (node->name() == ControlProtocolManager::state_node_name) {
|
||||
_control_protocol_state = new XMLNode (*node);
|
||||
} else if (node->name() == MIDI::Port::state_node_name) {
|
||||
_old_midi_port_states.push_back (new XMLNode (*node));
|
||||
} else if (node->name() == ARDOUR::Port::state_node_name) {
|
||||
_midi_port_states.push_back (new XMLNode (*node));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue