From 2ad3940b5479c53f084769f8a1f9ade571f24155 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 1 Apr 2010 02:18:58 +0000 Subject: Oops. Actually make new Properties changes work. git-svn-id: svn://localhost/ardour2/branches/3.0@6822 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/session_object.h | 2 -- libs/ardour/session_object.cc | 16 ---------------- 2 files changed, 18 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/ardour/session_object.h b/libs/ardour/ardour/session_object.h index 3e401a66ce..715ffa0e0e 100644 --- a/libs/ardour/ardour/session_object.h +++ b/libs/ardour/ardour/session_object.h @@ -57,8 +57,6 @@ class SessionObject : public SessionHandleRef, public PBD::StatefulDestructible Session& session() const { return _session; } std::string name() const { return _name; } - bool set_property (const PBD::PropertyBase& prop); - virtual bool set_name (const std::string& str) { if (_name != str) { _name = str; diff --git a/libs/ardour/session_object.cc b/libs/ardour/session_object.cc index 3e71b6a73e..b85a145ac0 100644 --- a/libs/ardour/session_object.cc +++ b/libs/ardour/session_object.cc @@ -38,19 +38,3 @@ SessionObject::make_property_quarks () DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for name = %1\n", Properties::name.property_id)); } -bool -SessionObject::set_property (const PropertyBase& prop) -{ - if (prop == Properties::name.property_id) { - std::string str = dynamic_cast*>(&prop)->val(); - if (_name != str) { - DEBUG_TRACE (DEBUG::Properties, string_compose ("session object named %1 renamed %2\n", - _name.val(), str)); - _name = str; - return true; - } - } - - return false; -} - -- cgit v1.2.3