summaryrefslogtreecommitdiff
path: root/src/types.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-01 16:27:59 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-01 16:27:59 +0100
commitbb8def962ae0092238d2263c1a2335b0206c4dc4 (patch)
tree2fda08b5c61d2b9508651dd495ec77c23becd953 /src/types.cc
parent4e5da9f3c71cb2fd4059eab5785602cf524457be (diff)
Move Rating out to a separate file.
Diffstat (limited to 'src/types.cc')
-rw-r--r--src/types.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/types.cc b/src/types.cc
index 12be1b8a..077836e0 100644
--- a/src/types.cc
+++ b/src/types.cc
@@ -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())
{