Move Rating out to a separate file.
[libdcp.git] / src / types.cc
index 12be1b8a051ca8bf32d8574ec027448ac57df7ae..077836e03b9127d906c297314592bacfce62e242 100644 (file)
@@ -431,29 +431,6 @@ dcp::marker_from_string (string s)
 }
 
 
-Rating::Rating (cxml::ConstNodePtr node)
-       : agency(node->string_child("Agency"))
-       , label(node->string_child("Label"))
-{
-       node->done ();
-}
-
-
-void
-Rating::as_xml (xmlpp::Element* parent) const
-{
-       parent->add_child("Agency")->add_child_text(agency);
-       parent->add_child("Label")->add_child_text(label);
-}
-
-
-bool
-dcp::operator== (Rating const & a, Rating const & b)
-{
-       return a.agency == b.agency && a.label == b.label;
-}
-
-
 ContentVersion::ContentVersion ()
        : id ("urn:uuid:" + make_uuid())
 {