summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-25 17:31:20 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-25 17:31:20 +0000
commit167c439002bde2b20399d733cd5d38d3674668c3 (patch)
tree0b17dfb9b3ab9459280ee69b62a58474c8d4d8ad
parent3825e3d51ce6e447fe433440ce1ffaf77535923a (diff)
Remove unused and broken method.
git-svn-id: svn://localhost/ardour2/branches/3.0@7680 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/pbd/pbd/sequence_property.h41
1 files changed, 2 insertions, 39 deletions
diff --git a/libs/pbd/pbd/sequence_property.h b/libs/pbd/pbd/sequence_property.h
index 38a7c27f45..aab6a57ea1 100644
--- a/libs/pbd/pbd/sequence_property.h
+++ b/libs/pbd/pbd/sequence_property.h
@@ -122,45 +122,8 @@ class SequenceProperty : public PropertyBase
}
bool set_state_from_owner_state (XMLNode const& owner_state) {
-
- XMLProperty const* n = owner_state.property ("name");
-
- if (!n) {
- return false;
- }
-
- assert (g_quark_from_string (n->value().c_str()) == property_id());
-
- const XMLNodeList& children = owner_state.children();
-
- for (XMLNodeList::const_iterator c = children.begin(); c != children.end(); ++c) {
-
- if ((*c)->name() == "Added") {
- const XMLNodeList& grandchildren = (*c)->children();
- for (XMLNodeList::const_iterator gc = grandchildren.begin(); gc != grandchildren.end(); ++gc) {
- const XMLProperty* prop = (*gc)->property ("id");
- if (prop) {
- typename Container::value_type v = lookup_id (PBD::ID (prop->value()));
- if (v) {
- _change.add (v);
- }
- }
- }
- } else if ((*c)->name() == "Removed") {
- const XMLNodeList& grandchildren = (*c)->children();
- for (XMLNodeList::const_iterator gc = grandchildren.begin(); gc != grandchildren.end(); ++gc) {
- const XMLProperty* prop = (*gc)->property ("id");
- if (prop) {
- typename Container::value_type v = lookup_id (PBD::ID (prop->value()));
- if (v) {
- _change.remove (v);
- }
- }
- }
- }
- }
-
- return true;
+ assert (false);
+ return false;
}
void add_state_to_owner_state (XMLNode& owner_state_node) const {