Use the same code for both Interop and SMPTE ratings controls.
[dcpomatic.git] / src / wx / smpte_metadata_dialog.cc
index 3838c8a6c06e7cfcfd84cbf08f09816b4bc776b6..a31b9ad765973f3c8ad81792be370b2d91ea484a 100644 (file)
@@ -44,17 +44,6 @@ using namespace boost::placeholders;
 #endif
 
 
-static string
-ratings_column (dcp::Rating r, int c)
-{
-       if (c == 0) {
-               return r.agency;
-       }
-
-       return r.label;
-}
-
-
 static string
 content_versions_column (string v, int)
 {
@@ -84,18 +73,6 @@ SMPTEMetadataDialog::setup_standard (wxPanel* panel, wxSizer* sizer)
                sizer->Add (m, 0, flags, DCPOMATIC_SIZER_GAP);
        }
 
-       vector<EditableListColumn> columns;
-       columns.push_back (EditableListColumn("Agency", 200, true));
-       columns.push_back (EditableListColumn("Label", 50, true));
-       _ratings = new EditableList<dcp::Rating, RatingDialog> (
-               panel,
-               columns,
-               boost::bind(&SMPTEMetadataDialog::ratings, this),
-               boost::bind(&SMPTEMetadataDialog::set_ratings, this, _1),
-               boost::bind(&ratings_column, _1, _2),
-               true,
-               EditableListButton::NEW | EditableListButton::EDIT | EditableListButton::REMOVE
-               );
        sizer->Add (_ratings, 1, wxEXPAND);
 }
 
@@ -208,20 +185,6 @@ SMPTEMetadataDialog::film_changed (ChangeType type, Film::Property property)
 }
 
 
-vector<dcp::Rating>
-SMPTEMetadataDialog::ratings () const
-{
-       return film()->ratings ();
-}
-
-
-void
-SMPTEMetadataDialog::set_ratings (vector<dcp::Rating> r)
-{
-       film()->set_ratings (r);
-}
-
-
 vector<string>
 SMPTEMetadataDialog::content_versions () const
 {