- _screens.remove (s);
-}
-
-Screen::Screen (cxml::ConstNodePtr node)
- : name (node->string_child ("Name"))
-{
- if (node->optional_string_child ("Certificate")) {
- certificate = dcp::Certificate (node->string_child ("Certificate"));
- }
-}
-
-void
-Screen::as_xml (xmlpp::Element* parent) const
-{
- parent->add_child("Name")->add_child_text (name);
- if (certificate) {
- parent->add_child("Certificate")->add_child_text (certificate->certificate (true));
- }
+ auto iter = std::find(_screens.begin(), _screens.end(), s);
+ if (iter != _screens.end()) {
+ _screens.erase(iter);
+ }