summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index ba78b0df8b..e87cb4b03f 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -88,7 +88,6 @@ Route::Route (Session& sess, string name, Flag flg, DataType default_type)
, _soloed_by_others_upstream (0)
, _soloed_by_others_downstream (0)
, _solo_isolated (0)
- , _unique_id (0)
, _denormal_protection (false)
, _recordable (true)
, _silent (false)
@@ -1882,9 +1881,6 @@ Route::state(bool full_state)
node->add_property("meter-type", enum_2_string (_meter_type));
- snprintf (buf, sizeof (buf), "%d", _unique_id);
- node->add_property("unique-id", buf);
-
if (_route_group) {
node->add_property("route-group", _route_group->name());
}
@@ -2063,10 +2059,6 @@ Route::set_state (const XMLNode& node, int version)
_meter_type = MeterType (string_2_enum (prop->value (), _meter_type));
}
- if ((prop = node.property (X_("unique-id"))) != 0) {
- _unique_id = atoi(prop->value());
- }
-
set_processor_state (processor_state);
// this looks up the internal instrument in processors
@@ -3488,18 +3480,6 @@ Route::set_name (const string& str)
return ret;
}
-std::string
-Route::id_and_name (std::string id_prefix, std::string id_postfix)
-{
- if (_unique_id == 0) {
- return name();
- } else {
- stringstream ss;
- ss << id_prefix << _unique_id << id_postfix << name();
- return ss.str();
- }
-}
-
/** Set the name of a route in an XML description.
* @param node XML <Route> node to set the name in.
* @param name New name.