Removed unused variables.
[libdcp.git] / src / reel_subtitle_asset.cc
index c7e4042065230ce791cb940182cbf12bb5e99df7..77c001d5e8a3e30a29eb5144f58251bf3d731071 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2017 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
@@ -62,7 +62,7 @@ ReelSubtitleAsset::ReelSubtitleAsset (boost::shared_ptr<const cxml::Node> node)
 }
 
 string
-ReelSubtitleAsset::cpl_node_name () const
+ReelSubtitleAsset::cpl_node_name (Standard) const
 {
        return "MainSubtitle";
 }
@@ -78,9 +78,12 @@ ReelSubtitleAsset::write_to_cpl (xmlpp::Node* node, Standard standard) const
 {
        ReelAsset::write_to_cpl (node, standard);
 
-        if (key_id ()) {
+       /* XXX: couldn't this stuff be in the parent class?  All child
+          classes seem to do the same thing...?
+       */
+       if (key_id ()) {
                /* Find <MainSubtitle> */
-               xmlpp::Node* ms = find_child (node, cpl_node_name ());
+               xmlpp::Node* ms = find_child (node, cpl_node_name (standard));
                /* Find <Hash> */
                xmlpp::Node* hash = find_child (ms, "Hash");
                ms->add_child_before (hash, "KeyId")->add_child_text ("urn:uuid:" + key_id().get ());