Fix property name lookup
[android/external-libkmsxx.git] / kms++ / src / card.cpp
index 0a34d14222ebd71629183cf8becd7c0754aaa580..12bdef6173f29b592d64b875bd00ca3d43f071ee 100644 (file)
@@ -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) {