From a706f157b86e90696808025db01de99646d51a77 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 22 Jun 2016 12:38:30 +0300 Subject: Fix property name lookup Object types can have different properties with the same name, so we need to move name-based property lookup from Card to DrmPropObject. Signed-off-by: Tomi Valkeinen --- kms++/src/card.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'kms++/src/card.cpp') diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp index 0a34d14..12bdef6 100644 --- a/kms++/src/card.cpp +++ b/kms++/src/card.cpp @@ -143,16 +143,6 @@ void Card::restore_modes() conn->restore_mode(); } -Property* Card::get_prop(const string& name) const -{ - for (auto prop : m_properties) { - if (name == prop->name()) - return prop; - } - - throw invalid_argument(string("Card property ") + name + " not found"); -} - Connector* Card::get_first_connected_connector() const { for(auto c : m_connectors) { -- cgit v1.2.3