Fix the build for older macOS.
[dcpomatic.git] / src / lib / config.cc
index 4aa4788bf1493001945ee06ef57fcbb4cc4e94f0..419436995dc829337bf59c0cf81a604c01741603 100644 (file)
@@ -168,7 +168,6 @@ Config::set_defaults ()
        _image_display = 0;
        _video_view_type = VIDEO_VIEW_SIMPLE;
        _respect_kdm_validity_periods = true;
-       _player_activity_log_file = boost::none;
        _player_debug_log_file = boost::none;
        _player_content_directory = boost::none;
        _player_playlist_directory = boost::none;
@@ -535,11 +534,6 @@ try
                _video_view_type = VIDEO_VIEW_SIMPLE;
        }
        _respect_kdm_validity_periods = f.optional_bool_child("RespectKDMValidityPeriods").get_value_or(true);
-       /* PlayerLogFile is old name */
-       _player_activity_log_file = f.optional_string_child("PlayerLogFile");
-       if (!_player_activity_log_file) {
-               _player_activity_log_file = f.optional_string_child("PlayerActivityLogFile");
-       }
        _player_debug_log_file = f.optional_string_child("PlayerDebugLogFile");
        _player_content_directory = f.optional_string_child("PlayerContentDirectory");
        _player_playlist_directory = f.optional_string_child("PlayerPlaylistDirectory");
@@ -962,12 +956,8 @@ Config::write_config () const
        }
        /* [XML] RespectKDMValidityPeriods 1 to refuse to use KDMs that are out of date, 0 to ignore KDM dates. */
        root->add_child("RespectKDMValidityPeriods")->add_child_text(_respect_kdm_validity_periods ? "1" : "0");
-       if (_player_activity_log_file) {
-               /* [XML] PlayerLogFile Filename to use for player activity logs (e.g starting, stopping, playlist loads) */
-               root->add_child("PlayerActivityLogFile")->add_child_text(_player_activity_log_file->string());
-       }
        if (_player_debug_log_file) {
-               /* [XML] PlayerLogFile Filename to use for player debug logs */
+               /* [XML] PlayerLogFile Filename to use for player debug logs. */
                root->add_child("PlayerDebugLogFile")->add_child_text(_player_debug_log_file->string());
        }
        if (_player_content_directory) {
@@ -989,7 +979,7 @@ Config::write_config () const
                root->add_child("CustomLanguage")->add_child_text(i.to_string());
        }
        if (_add_files_path) {
-               /* [XML] The default path that will be offered in the picker when adding files to a film */
+               /* [XML] AddFilesPath The default path that will be offered in the picker when adding files to a film. */
                root->add_child("AddFilesPath")->add_child_text(_add_files_path->string());
        }
 
@@ -1254,25 +1244,6 @@ Config::read_dkdm_recipients (cxml::Document const & f)
        }
 }
 
-void
-Config::set_dkdm_recipients_file (boost::filesystem::path file)
-{
-       if (file == _dkdm_recipients_file) {
-               return;
-       }
-
-       _dkdm_recipients_file = file;
-
-       if (boost::filesystem::exists (_dkdm_recipients_file)) {
-               /* Existing file; read it in */
-               cxml::Document f ("DKDMRecipients");
-               f.read_file (_dkdm_recipients_file);
-               read_dkdm_recipients (f);
-       }
-
-       changed (OTHER);
-}
-
 
 void
 Config::save_template (shared_ptr<const Film> film, string name) const